Index: tests_lit/llvm2ice_tests/function_aligned.ll |
diff --git a/tests_lit/llvm2ice_tests/function_aligned.ll b/tests_lit/llvm2ice_tests/function_aligned.ll |
index 02b460b68fe8412d0f91b62eae88a41c29a7b198..2b3da9a928f34d7f6049a8bce607b4cacbef66d4 100644 |
--- a/tests_lit/llvm2ice_tests/function_aligned.ll |
+++ b/tests_lit/llvm2ice_tests/function_aligned.ll |
@@ -4,6 +4,12 @@ |
; Also, we are currently using hlts for non-executable padding. |
; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 | FileCheck %s |
+; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) |
+; once enough infrastructure is in. Also, switch to --filetype=obj |
+; when possible. |
+; RUN: %if --need=target_ARM32 --command %p2i --filetype=asm --assemble \ |
+; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \ |
+; RUN: | %if --need=target_ARM32 --command FileCheck --check-prefix ARM32 %s |
define void @foo() { |
ret void |
@@ -11,9 +17,16 @@ define void @foo() { |
; CHECK-LABEL: foo |
; CHECK-NEXT: 0: {{.*}} ret |
; CHECK-NEXT: 1: {{.*}} hlt |
+; ARM32-LABEL: foo |
+; ARM32-NEXT: 0: {{.*}} bx lr |
+; ARM32-NEXT: 4: e7fedef0 udf |
+; ARM32-NEXT: 8: e7fedef0 udf |
+; ARM32-NEXT: c: e7fedef0 udf |
define void @bar() { |
ret void |
} |
; CHECK-LABEL: bar |
; CHECK-NEXT: 20: {{.*}} ret |
+; ARM32-LABEL: bar |
+; ARM32-NEXT: 10: {{.*}} bx lr |