From 01095a5d43bbfde13731688ddcf6048ebb8b7721 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 23 Jul 2016 20:41:05 +0000 Subject: Vendor import of llvm release_39 branch r276489: https://llvm.org/svn/llvm-project/llvm/branches/release_39@276489 --- test/CodeGen/Hexagon/sdata-basic.ll | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/CodeGen/Hexagon/sdata-basic.ll (limited to 'test/CodeGen/Hexagon/sdata-basic.ll') diff --git a/test/CodeGen/Hexagon/sdata-basic.ll b/test/CodeGen/Hexagon/sdata-basic.ll new file mode 100644 index 000000000000..db7375417df9 --- /dev/null +++ b/test/CodeGen/Hexagon/sdata-basic.ll @@ -0,0 +1,16 @@ +; RUN: llc -march=hexagon -O2 < %s | FileCheck %s +; CHECK-NOT: ##var +target datalayout = "e-p:32:32:32-i64:64:64-i32:32:32-i16:16:16-i1:32:32-f64:64:64-f32:32:32-v64:64:64-v32:32:32-a0:0-n16:32" +target triple = "hexagon" + +@var = external global i32 + +define i32 @foo() nounwind readonly { +entry: + %0 = load i32, i32* @var, align 4, !tbaa !0 + ret i32 %0 +} + +!0 = !{!"int", !1} +!1 = !{!"omnipotent char", !2} +!2 = !{!"Simple C/C++ TBAA"} -- cgit v1.3