summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode/compatibility.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Bitcode/compatibility.ll')
-rw-r--r--llvm/test/Bitcode/compatibility.ll14
1 files changed, 13 insertions, 1 deletions
diff --git a/llvm/test/Bitcode/compatibility.ll b/llvm/test/Bitcode/compatibility.ll
index 8269a90e146..c7b22c7999d 100644
--- a/llvm/test/Bitcode/compatibility.ll
+++ b/llvm/test/Bitcode/compatibility.ll
@@ -1172,9 +1172,17 @@ continue:
}
; Instructions -- Unary Operations
-define void @instructions.unops(double %op1) {
+define void @instructions.unops(double %op1, i32 %op2, <2 x i32> %op3, i8* %op4) {
fneg double %op1
; CHECK: fneg double %op1
+ freeze i32 %op2
+ ; CHECK: freeze i32 %op2
+ freeze double %op1
+ ; CHECK: freeze double %op1
+ freeze <2 x i32> %op3
+ ; CHECK: freeze <2 x i32> %op3
+ freeze i8* %op4
+ ; CHECK: freeze i8* %op4
ret void
}
@@ -1826,6 +1834,10 @@ define void @instructions.strictfp() strictfp {
ret void
}
+define i64 @constexpr_freeze() {
+ ret i64 freeze (i64 32)
+}
+
; immarg attribute
declare void @llvm.test.immarg.intrinsic(i32 immarg)
; CHECK: declare void @llvm.test.immarg.intrinsic(i32 immarg)
OpenPOWER on IntegriCloud