blob: c20c66aad127f1287cdd8ea592a5277c698eff2f [file] [log] [blame]
Manman Ren804f0342013-09-28 00:22:27 +00001; RUN: llvm-as < %s | llvm-dis | FileCheck %s
Duncan P. N. Exon Smith13f5c582014-08-19 21:08:27 +00002; RUN: verify-uselistorder < %s
Manman Ren804f0342013-09-28 00:22:27 +00003
4; Function Attrs: nounwind
5define void @_Z4testPiPf(i32* nocapture %pI, float* nocapture %pF) #0 {
6entry:
Duncan P. N. Exon Smith1ef70ff2014-12-15 19:07:53 +00007 store i32 0, i32* %pI, align 4, !tbaa !{!"int", !0}
Manman Ren804f0342013-09-28 00:22:27 +00008 ; 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}
13
14attributes #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" }
15
Duncan P. N. Exon Smith1ef70ff2014-12-15 19:07:53 +000016!0 = !{!"omnipotent char", !1}
17!1 = !{!"Simple C/C++ TBAA"}
18!2 = !{!"float", !0}
Manman Ren804f0342013-09-28 00:22:27 +000019
Duncan P. N. Exon Smith1ef70ff2014-12-15 19:07:53 +000020; 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]]}