Index: tests_lit/llvm2ice_tests/inttoptr.ll |
diff --git a/tests_lit/llvm2ice_tests/inttoptr.ll b/tests_lit/llvm2ice_tests/inttoptr.ll |
new file mode 100644 |
index 0000000000000000000000000000000000000000..67781d72de99874a5afbd817a895679014ebceee |
--- /dev/null |
+++ b/tests_lit/llvm2ice_tests/inttoptr.ll |
@@ -0,0 +1,13 @@ |
+; RUIN: %llvm2ice -verbose inst %s | FileCheck %s |
+; RUIN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s |
+; RUN: %szdiff --llvm2ice=%llvm2ice %s | FileCheck --check-prefix=DUMP %s |
+ |
+define void @dummy_inttoptr(i32 %addr_arg) { |
+entry: |
+ %ptr = inttoptr i32 %addr_arg to i32* |
+ ret void |
+; CHECK: %ptr = i32 %addr_arg |
+} |
+ |
+; ERRORS-NOT: ICE translation error |
+; DUMP-NOT: SZ |