xref: /aosp_15_r20/external/llvm/test/Bitcode/upgrade-tbaa.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; RUN: verify-uselistorder < %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind
5*9880d681SAndroid Build Coastguard Workerdefine void @_Z4testPiPf(i32* nocapture %pI, float* nocapture %pF) #0 {
6*9880d681SAndroid Build Coastguard Workerentry:
7*9880d681SAndroid Build Coastguard Worker  store i32 0, i32* %pI, align 4, !tbaa !{!"int", !0}
8*9880d681SAndroid Build Coastguard Worker  ; CHECK: store i32 0, i32* %pI, align 4, !tbaa [[TAG_INT:!.*]]
9*9880d681SAndroid Build Coastguard Worker  store float 1.000000e+00, float* %pF, align 4, !tbaa !2
10*9880d681SAndroid Build Coastguard Worker  ; CHECK: store float 1.000000e+00, float* %pF, align 4, !tbaa [[TAG_FLOAT:!.*]]
11*9880d681SAndroid Build Coastguard Worker  ret void
12*9880d681SAndroid Build Coastguard Worker}
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Workerattributes #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*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard Worker!0 = !{!"omnipotent char", !1}
17*9880d681SAndroid Build Coastguard Worker!1 = !{!"Simple C/C++ TBAA"}
18*9880d681SAndroid Build Coastguard Worker!2 = !{!"float", !0}
19*9880d681SAndroid Build Coastguard Worker
20*9880d681SAndroid Build Coastguard Worker; CHECK: [[TAG_INT]] = !{[[TYPE_INT:!.*]], [[TYPE_INT]], i64 0}
21*9880d681SAndroid Build Coastguard Worker; CHECK: [[TYPE_INT]] = !{!"int", [[TYPE_CHAR:!.*]]}
22*9880d681SAndroid Build Coastguard Worker; CHECK: [[TYPE_CHAR]] = !{!"omnipotent char", !{{.*}}
23*9880d681SAndroid Build Coastguard Worker; CHECK: [[TAG_FLOAT]] = !{[[TYPE_FLOAT:!.*]], [[TYPE_FLOAT]], i64 0}
24*9880d681SAndroid Build Coastguard Worker; CHECK: [[TYPE_FLOAT]] = !{!"float", [[TYPE_CHAR]]}
25