]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - test/Bitcode/upgrade-tbaa.ll
IR: Make metadata typeless in assembly
[opencl/llvm.git] / test / Bitcode / upgrade-tbaa.ll
1 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2 ; RUN: verify-uselistorder < %s
4 ; Function Attrs: nounwind
5 define void @_Z4testPiPf(i32* nocapture %pI, float* nocapture %pF) #0 {
6 entry:
7   store i32 0, i32* %pI, align 4, !tbaa !{!"int", !0}
8   ; CHECK: store i32 0, i32* %pI, align 4, !tbaa [[TAG_INT:!.*]]
9   store float 1.000000e+00, float* %pF, align 4, !tbaa !2
10   ; CHECK: store float 1.000000e+00, float* %pF, align 4, !tbaa [[TAG_FLOAT:!.*]]
11   ret void
12 }
14 attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-realign-stack" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
16 !0 = !{!"omnipotent char", !1}
17 !1 = !{!"Simple C/C++ TBAA"}
18 !2 = !{!"float", !0}
20 ; CHECK: [[TAG_INT]] = !{[[TYPE_INT:!.*]], [[TYPE_INT]], i64 0}
21 ; CHECK: [[TYPE_INT]] = !{!"int", [[TYPE_CHAR:!.*]]}
22 ; CHECK: [[TYPE_CHAR]] = !{!"omnipotent char", !{{.*}}
23 ; CHECK: [[TAG_FLOAT]] = !{[[TYPE_FLOAT:!.*]], [[TYPE_FLOAT]], i64 0}
24 ; CHECK: [[TYPE_FLOAT]] = !{!"float", [[TYPE_CHAR]]}