mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-07 12:30:44 +00:00
c552ed7f63
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267034 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
436 B
LLVM
17 lines
436 B
LLVM
; 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"}
|