Commit 033dda7e by Jim Stichnoth

Subzero: Remove --skip-unimplemented from ARM lit tests.

ARM support is complete, so clean up some of the lit tests: 1. Remove --skip-unimplemented 2. Use --filetype=obj instead of =asm, and remove --assemble 3. Remove --need=allow_dump requirement 4. Remove related TODOs. 5. Fix some CHECK lines because objdump output is slightly different from filetype=asm output. BUG= none R=jpp@chromium.org Review URL: https://codereview.chromium.org/2384983002 .
parent 958ddb75
...@@ -10,20 +10,17 @@ ...@@ -10,20 +10,17 @@
; RUN: --target x8632 -i %s --args -Om1 -allow-externally-defined-symbols \ ; RUN: --target x8632 -i %s --args -Om1 -allow-externally-defined-symbols \
; RUN: | %if --need=target_X8632 --command FileCheck --check-prefix=OPTM1 %s ; RUN: | %if --need=target_X8632 --command FileCheck --check-prefix=OPTM1 %s
; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) ; RUN: %if --need=target_ARM32 \
; once enough infrastructure is in. Also, switch to --filetype=obj ; RUN: --command %p2i --filetype=obj \
; when possible. ; RUN: --disassemble --target arm32 -i %s --args -O2 \
; RUN: %if --need=target_ARM32 --need=allow_dump \
; RUN: --command %p2i --filetype=asm --assemble \
; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-O2 %s ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-O2 %s
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble --disassemble --target arm32 \ ; RUN: --command %p2i --filetype=obj --disassemble --target arm32 \
; RUN: -i %s --args -Om1 --skip-unimplemented \ ; RUN: -i %s --args -Om1 \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-OM1 %s ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-OM1 %s
; TODO(rkotler): Stop skipping unimplemented parts (via --skip-unimplemented) ; TODO(rkotler): Stop skipping unimplemented parts (via --skip-unimplemented)
......
...@@ -9,21 +9,18 @@ ...@@ -9,21 +9,18 @@
; RUN: | %if --need=target_X8632 --command FileCheck \ ; RUN: | %if --need=target_X8632 --command FileCheck \
; RUN: --check-prefix CHECK-OPTM1 %s ; RUN: --check-prefix CHECK-OPTM1 %s
; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) ; RUN: %if --need=target_ARM32 \
; once enough infrastructure is in. Also, switch to --filetype=obj ; RUN: --command %p2i --filetype=obj \
; when possible. ; RUN: --disassemble --target arm32 -i %s --args -O2 \
; RUN: %if --need=target_ARM32 --need=allow_dump \
; RUN: --command %p2i --filetype=asm --assemble \
; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck --check-prefix ARM32 --check-prefix=ARM-OPT2 %s ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix=ARM-OPT2 %s
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble \ ; RUN: --command %p2i --filetype=obj \
; RUN: --disassemble --target arm32 -i %s --args -Om1 --skip-unimplemented \ ; RUN: --disassemble --target arm32 -i %s --args -Om1 \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck --check-prefix ARM32 --check-prefix=ARM-OPTM1 %s ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix=ARM-OPTM1 %s
; RUN: %if --need=target_MIPS32 --need=allow_dump \ ; RUN: %if --need=target_MIPS32 --need=allow_dump \
......
...@@ -4,23 +4,20 @@ ...@@ -4,23 +4,20 @@
; RUN: --target x8632 -i %s --args -O2 \ ; RUN: --target x8632 -i %s --args -O2 \
; RUN: | %if --need=target_X8632 --command FileCheck %s ; RUN: | %if --need=target_X8632 --command FileCheck %s
; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) ; RUN: %if --need=target_ARM32 \
; once enough infrastructure is in. Also, switch to --filetype=obj ; RUN: --command %p2i --filetype=obj --disassemble --target arm32 \
; when possible. ; RUN: -i %s --args -O2 \
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble --disassemble --target arm32 \
; RUN: -i %s --args -O2 --skip-unimplemented \
; RUN: | %if --need=target_ARM32 --need=allow_dump \
; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM-OPT2 %s ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM-OPT2 %s
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble --disassemble --target arm32 \ ; RUN: --command %p2i --filetype=obj --disassemble --target arm32 \
; RUN: -i %s --args -O2 --mattr=hwdiv-arm --skip-unimplemented \ ; RUN: -i %s --args -O2 --mattr=hwdiv-arm \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck --check-prefix ARM32HWDIV %s ; RUN: --command FileCheck --check-prefix ARM32HWDIV %s
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble --disassemble --target arm32 \ ; RUN: --command %p2i --filetype=obj --disassemble --target arm32 \
; RUN: -i %s --args -Om1 --skip-unimplemented \ ; RUN: -i %s --args -Om1 \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-OPTM1 %s ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-OPTM1 %s
; ;
; RUN: %if --need=target_MIPS32 --need=allow_dump \ ; RUN: %if --need=target_MIPS32 --need=allow_dump \
......
...@@ -3,14 +3,14 @@ ...@@ -3,14 +3,14 @@
; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 | FileCheck %s ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 | FileCheck %s
; RUN: %p2i --filetype=obj --disassemble -i %s --args -Om1 | FileCheck %s ; RUN: %p2i --filetype=obj --disassemble -i %s --args -Om1 | FileCheck %s
; RUN: %if --need=allow_dump --need=target_ARM32 --command %p2i --filetype=asm \ ; RUN: %if --need=target_ARM32 --command %p2i --filetype=obj --disassemble \
; RUN: --target arm32 -i %s --args -O2 --skip-unimplemented \ ; RUN: --target arm32 -i %s --args -O2 \
; RUN: | %if --need=allow_dump --need=target_ARM32 --command FileCheck %s \ ; RUN: | %if --need=target_ARM32 --command FileCheck %s \
; RUN: --check-prefix=ARM32 ; RUN: --check-prefix=ARM32
; RUN: %if --need=allow_dump --need=target_ARM32 --command %p2i --filetype=asm \ ; RUN: %if --need=target_ARM32 --command %p2i --filetype=obj --disassemble \
; RUN: --target arm32 -i %s --args -Om1 --skip-unimplemented \ ; RUN: --target arm32 -i %s --args -Om1 \
; RUN: | %if --need=allow_dump --need=target_ARM32 --command FileCheck %s \ ; RUN: | %if --need=target_ARM32 --command FileCheck %s \
; RUN: --check-prefix=ARM32 ; RUN: --check-prefix=ARM32
define internal i32 @cast_f2i(float %f) { define internal i32 @cast_f2i(float %f) {
...@@ -52,8 +52,8 @@ entry: ...@@ -52,8 +52,8 @@ entry:
; CHECK: mov e{{..}},{{(DWORD PTR )?}}ds:0x0 {{.*}} {{.*}}0012345678901234 ; CHECK: mov e{{..}},{{(DWORD PTR )?}}ds:0x0 {{.*}} {{.*}}0012345678901234
; CHECK: mov e{{..}},{{(DWORD PTR )?}}ds:0x4 {{.*}} {{.*}}0012345678901234 ; CHECK: mov e{{..}},{{(DWORD PTR )?}}ds:0x4 {{.*}} {{.*}}0012345678901234
; ARM32-LABEL: cast_d2ll_const ; ARM32-LABEL: cast_d2ll_const
; ARM32-DAG: movw [[ADDR:r[0-9]+]], #:lower16:.L$ ; ARM32-DAG: movw [[ADDR:r[0-9]+]], #{{.*_MOVW_}}
; ARM32-DAG: movt [[ADDR]], #:upper16:.L$ ; ARM32-DAG: movt [[ADDR]], #{{.*_MOVT_}}
; ARM32-DAG: vldr [[DREG:d[0-9]+]], {{\[}}[[ADDR]]{{\]}} ; ARM32-DAG: vldr [[DREG:d[0-9]+]], {{\[}}[[ADDR]]{{\]}}
; ARM32: vmov r{{[0-9]+}}, r{{[0-9]+}}, [[DREG]] ; ARM32: vmov r{{[0-9]+}}, r{{[0-9]+}}, [[DREG]]
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 \ ; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 \
; RUN: -allow-externally-defined-symbols | FileCheck %s ; RUN: -allow-externally-defined-symbols | FileCheck %s
; RUN: %if --need=allow_dump --need=target_ARM32 --command %p2i --filetype=asm \ ; RUN: %if --need=target_ARM32 --command %p2i --filetype=obj \
; RUN: --target arm32 -i %s --args -O2 --skip-unimplemented \ ; RUN: --target arm32 -i %s --disassemble --args -O2 \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=allow_dump --need=target_ARM32 --command FileCheck %s \ ; RUN: | %if --need=target_ARM32 --command FileCheck %s \
; RUN: --check-prefix=ARM32 ; RUN: --check-prefix=ARM32
declare void @use_value(i32) declare void @use_value(i32)
...@@ -55,7 +55,7 @@ branch2: ...@@ -55,7 +55,7 @@ branch2:
; CHECK: jge ; CHECK: jge
; ARM32-LABEL: fold_cmp_br_intervening_insts ; ARM32-LABEL: fold_cmp_br_intervening_insts
; ARM32: push {{[{].*[}]}} ; ARM32: push {{[{].*[}]}}
; ARM32: bl use_value ; ARM32: bl{{.*}}use_value
; ARM32: cmp {{r[0-9]+}}, {{r[0-9]+}} ; ARM32: cmp {{r[0-9]+}}, {{r[0-9]+}}
; ARM32: bge ; ARM32: bge
; ARM32: mov r0, #1 ; ARM32: mov r0, #1
...@@ -190,7 +190,7 @@ entry: ...@@ -190,7 +190,7 @@ entry:
; CHECK: cmp ; CHECK: cmp
; CHECK: cmovl ; CHECK: cmovl
; ARM32-LABEL: fold_cmp_select_intervening_insts ; ARM32-LABEL: fold_cmp_select_intervening_insts
; ARM32: bl use_value ; ARM32: bl{{.*}}use_value
; ARM32: cmp r{{[0-9]+}}, r{{[0-9]+}} ; ARM32: cmp r{{[0-9]+}}, r{{[0-9]+}}
; ARM32: movlt ; ARM32: movlt
; ARM32: bx lr ; ARM32: bx lr
...@@ -377,9 +377,9 @@ target_false: ...@@ -377,9 +377,9 @@ target_false:
} }
; ARM32-LABEL: br_i1_folding2_and ; ARM32-LABEL: br_i1_folding2_and
; ARM32: tst r0, #1 ; ARM32: tst r0, #1
; ARM32: beq {{.*}}target_false ; ARM32: beq
; ARM32: tst r1, #1 ; ARM32: tst r1, #1
; ARM32: beq {{.*}}target_false ; ARM32: beq
define internal i32 @br_i1_folding2_or(i32 %arg1, i32 %arg2) { define internal i32 @br_i1_folding2_or(i32 %arg1, i32 %arg2) {
%t0 = trunc i32 %arg1 to i1 %t0 = trunc i32 %arg1 to i1
...@@ -396,9 +396,9 @@ target_false: ...@@ -396,9 +396,9 @@ target_false:
} }
; ARM32-LABEL: br_i1_folding2_or ; ARM32-LABEL: br_i1_folding2_or
; ARM32: tst r0, #1 ; ARM32: tst r0, #1
; ARM32: bne {{.*}}target_true ; ARM32: bne
; ARM32: tst r1, #1 ; ARM32: tst r1, #1
; ARM32: beq {{.*}}target_false ; ARM32: beq
define internal i32 @br_i1_folding3_and_or(i32 %arg1, i32 %arg2, i32 %arg3) { define internal i32 @br_i1_folding3_and_or(i32 %arg1, i32 %arg2, i32 %arg3) {
%t0 = trunc i32 %arg1 to i1 %t0 = trunc i32 %arg1 to i1
...@@ -420,9 +420,9 @@ target_false: ...@@ -420,9 +420,9 @@ target_false:
; ARM32: tst r0, #1 ; ARM32: tst r0, #1
; ARM32: beq ; ARM32: beq
; ARM32: tst r1, #1 ; ARM32: tst r1, #1
; ARM32: bne {{.*}}target_true ; ARM32: bne
; ARM32: tst r2, #1 ; ARM32: tst r2, #1
; ARM32: beq {{.*}}target_false ; ARM32: beq
define internal i32 @br_i1_folding3_or_and(i32 %arg1, i32 %arg2, i32 %arg3) { define internal i32 @br_i1_folding3_or_and(i32 %arg1, i32 %arg2, i32 %arg3) {
%t0 = trunc i32 %arg1 to i1 %t0 = trunc i32 %arg1 to i1
...@@ -444,9 +444,9 @@ target_false: ...@@ -444,9 +444,9 @@ target_false:
; ARM32: tst r0, #1 ; ARM32: tst r0, #1
; ARM32: bne ; ARM32: bne
; ARM32: tst r1, #1 ; ARM32: tst r1, #1
; ARM32: beq {{.*}}target_false ; ARM32: beq
; ARM32: tst r2, #1 ; ARM32: tst r2, #1
; ARM32: beq {{.*}}target_false ; ARM32: beq
define internal i32 @br_i1_folding4(i32 %arg1, i32 %arg2, i32 %arg3, i32 %arg4, define internal i32 @br_i1_folding4(i32 %arg1, i32 %arg2, i32 %arg3, i32 %arg4,
i32 %arg5) { i32 %arg5) {
...@@ -474,8 +474,8 @@ target_false: ...@@ -474,8 +474,8 @@ target_false:
; ARM32: tst r1, #1 ; ARM32: tst r1, #1
; ARM32: beq ; ARM32: beq
; ARM32: tst r2, #1 ; ARM32: tst r2, #1
; ARM32: bne {{.*}}target_true ; ARM32: bne
; ARM32: tst r3, #1 ; ARM32: tst r3, #1
; ARM32: beq {{.*}}target_false ; ARM32: beq [[TARGET:.*]]
; ARM32: tst r4, #1 ; ARM32: tst r4, #1
; ARM32: beq {{.*}}target_false ; ARM32: beq [[TARGET]]
...@@ -9,21 +9,18 @@ ...@@ -9,21 +9,18 @@
; RUN: --target x8632 -i %s --args -Om1 -allow-externally-defined-symbols \ ; RUN: --target x8632 -i %s --args -Om1 -allow-externally-defined-symbols \
; RUN: | %if --need=target_X8632 --command FileCheck --check-prefix=OM1 %s ; RUN: | %if --need=target_X8632 --command FileCheck --check-prefix=OM1 %s
; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) ; RUN: %if --need=target_ARM32_dump \
; once enough infrastructure is in. Also, switch to --filetype=obj ; RUN: --command %p2i --filetype=obj \
; when possible.
; RUN: %if --need=target_ARM32 --need=allow_dump \
; RUN: --command %p2i --filetype=asm --assemble \
; RUN: --disassemble --target arm32 -i %s --args -O2 \ ; RUN: --disassemble --target arm32 -i %s --args -O2 \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32_dump \
; RUN: --command FileCheck --check-prefix ARM32O2 %s ; RUN: --command FileCheck --check-prefix ARM32O2 %s
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble \ ; RUN: --command %p2i --filetype=obj \
; RUN: --disassemble --target arm32 -i %s --args -Om1 \ ; RUN: --disassemble --target arm32 -i %s --args -Om1 \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck \ ; RUN: --command FileCheck \
; RUN: --check-prefix ARM32OM1 %s ; RUN: --check-prefix ARM32OM1 %s
......
...@@ -24,18 +24,15 @@ ...@@ -24,18 +24,15 @@
; RUN: | %if --need=target_X8664 \ ; RUN: | %if --need=target_X8664 \
; RUN: --command FileCheck --check-prefix=X8664-OPTM1 %s ; RUN: --command FileCheck --check-prefix=X8664-OPTM1 %s
; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) ; RUN: %if --need=target_ARM32 \
; once enough infrastructure is in. Also, switch to --filetype=obj ; RUN: --command %p2i --filetype=obj \
; when possible. ; RUN: --disassemble --target arm32 -i %s --args -O2 \
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble \
; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \
; RUN: | %if --need=target_ARM32 --need=allow_dump \
; RUN: --command FileCheck --check-prefix ARM32 %s ; RUN: --command FileCheck --check-prefix ARM32 %s
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble \ ; RUN: --command %p2i --filetype=obj \
; RUN: --disassemble --target arm32 -i %s --args -Om1 --skip-unimplemented \ ; RUN: --disassemble --target arm32 -i %s --args -Om1 \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32_dump \
; RUN: --command FileCheck --check-prefix ARM32 %s ; RUN: --command FileCheck --check-prefix ARM32 %s
@__init_array_start = internal constant [0 x i8] zeroinitializer, align 4 @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4
......
...@@ -8,19 +8,16 @@ ...@@ -8,19 +8,16 @@
; RUN: --target x8632 -i %s --args -Om1 \ ; RUN: --target x8632 -i %s --args -Om1 \
; RUN: | %if --need=target_X8632 --command FileCheck %s ; RUN: | %if --need=target_X8632 --command FileCheck %s
; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) ; RUN: %if --need=target_ARM32 \
; once enough infrastructure is in. Also, switch to --filetype=obj ; RUN: --command %p2i --filetype=obj \
; when possible. ; RUN: --disassemble --target arm32 -i %s --args -O2 \
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble \
; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \
; RUN: | %if --need=target_ARM32 --need=allow_dump \
; RUN: --command FileCheck --check-prefix ARM32 %s ; RUN: --command FileCheck --check-prefix ARM32 %s
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble \ ; RUN: --command %p2i --filetype=obj \
; RUN: --disassemble --target arm32 -i %s --args -Om1 --skip-unimplemented \ ; RUN: --disassemble --target arm32 -i %s --args -Om1 \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck --check-prefix ARM32 %s ; RUN: --command FileCheck --check-prefix ARM32 %s
@i8v = internal global [1 x i8] zeroinitializer, align 1 @i8v = internal global [1 x i8] zeroinitializer, align 1
......
...@@ -10,15 +10,15 @@ ...@@ -10,15 +10,15 @@
; RUN: --target x8632 -i %s --args -Om1 \ ; RUN: --target x8632 -i %s --args -Om1 \
; RUN: | %if --need=target_X8632 --command FileCheck %s ; RUN: | %if --need=target_X8632 --command FileCheck %s
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble --disassemble --target arm32 \ ; RUN: --command %p2i --filetype=obj --disassemble --target arm32 \
; RUN: -i %s --args -O2 --skip-unimplemented \ ; RUN: -i %s --args -O2 \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck --check-prefix ARM32 %s ; RUN: --command FileCheck --check-prefix ARM32 %s
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble --disassemble --target arm32 \ ; RUN: --command %p2i --filetype=obj --disassemble --target arm32 \
; RUN: -i %s --args -Om1 --skip-unimplemented \ ; RUN: -i %s --args -Om1 \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck --check-prefix ARM32 %s ; RUN: --command FileCheck --check-prefix ARM32 %s
; RUN: %if --need=target_MIPS32 --need=allow_dump \ ; RUN: %if --need=target_MIPS32 --need=allow_dump \
......
; Tests validating the vfp calling convention for ARM32. ; Tests validating the vfp calling convention for ARM32.
; ;
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble \ ; RUN: --command %p2i --filetype=obj \
; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \ ; RUN: --disassemble --target arm32 -i %s --args -O2 \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck %s ; RUN: --command FileCheck %s
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble --disassemble --target arm32 \ ; RUN: --command %p2i --filetype=obj --disassemble --target arm32 \
; RUN: -i %s --args -Om1 --skip-unimplemented \ ; RUN: -i %s --args -Om1 \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck %s ; RUN: --command FileCheck %s
; Boring tests ensuring float arguments are allocated "correctly." Unfortunately ; Boring tests ensuring float arguments are allocated "correctly." Unfortunately
......
...@@ -6,16 +6,16 @@ ...@@ -6,16 +6,16 @@
; RUN: -allow-externally-defined-symbols | FileCheck %s \ ; RUN: -allow-externally-defined-symbols | FileCheck %s \
; RUN: --check-prefix=CHECK-OM1 ; RUN: --check-prefix=CHECK-OM1
; RUN: %if --need=allow_dump --need=target_ARM32 --command %p2i --filetype=asm \ ; RUN: %if --need=target_ARM32 --command %p2i --filetype=obj --disassemble \
; RUN: --target arm32 -i %s --args -O2 \ ; RUN: --target arm32 -i %s --args -O2 \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=allow_dump --need=target_ARM32 --command FileCheck %s \ ; RUN: | %if --need=target_ARM32 --command FileCheck %s \
; RUN: --check-prefix=ARM32 --check-prefix=ARM32-O2 ; RUN: --check-prefix=ARM32 --check-prefix=ARM32-O2
; RUN: %if --need=allow_dump --need=target_ARM32 --command %p2i --filetype=asm \ ; RUN: %if --need=target_ARM32 --command %p2i --filetype=obj --disassemble \
; RUN: --target arm32 -i %s --args -Om1 \ ; RUN: --target arm32 -i %s --args -Om1 \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=allow_dump --need=target_ARM32 --command FileCheck %s \ ; RUN: | %if --need=target_ARM32 --command FileCheck %s \
; RUN: --check-prefix=ARM32 --check-prefix=ARM32-OM1 ; RUN: --check-prefix=ARM32 --check-prefix=ARM32-OM1
; RUN: %if --need=allow_dump --need=target_MIPS32 --command %p2i \ ; RUN: %if --need=allow_dump --need=target_MIPS32 --command %p2i \
...@@ -67,7 +67,7 @@ if.end3: ; preds = %if.then2, %if.end ...@@ -67,7 +67,7 @@ if.end3: ; preds = %if.then2, %if.end
; ARM32-OM1: mov [[R0:r[0-9]+]], #0 ; ARM32-OM1: mov [[R0:r[0-9]+]], #0
; ARM32-OM1: moveq [[R0]], #1 ; ARM32-OM1: moveq [[R0]], #1
; ARM32-O2: bne ; ARM32-O2: bne
; ARM32: bl func ; ARM32: bl{{.*}}func
; ARM32: vcmp.f64 ; ARM32: vcmp.f64
; ARM32: vmrs ; ARM32: vmrs
; ARM32-OM1: mov [[R1:r[0-9]+]], #0 ; ARM32-OM1: mov [[R1:r[0-9]+]], #0
......
...@@ -6,14 +6,14 @@ ...@@ -6,14 +6,14 @@
; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 | FileCheck %s ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 | FileCheck %s
; RUN: %p2i --filetype=obj --disassemble -i %s --args -Om1 | FileCheck %s ; RUN: %p2i --filetype=obj --disassemble -i %s --args -Om1 | FileCheck %s
; RUN: %if --need=allow_dump --need=target_ARM32 --command %p2i --filetype=asm \ ; RUN: %if --need=target_ARM32 --command %p2i --filetype=obj --disassemble \
; RUN: --target arm32 -i %s --args -O2 --skip-unimplemented \ ; RUN: --target arm32 -i %s --args -O2 \
; RUN: | %if --need=allow_dump --need=target_ARM32 --command FileCheck %s \ ; RUN: | %if --need=target_ARM32 --command FileCheck %s \
; RUN: --check-prefix=ARM32 ; RUN: --check-prefix=ARM32
; RUN: %if --need=allow_dump --need=target_ARM32 --command %p2i --filetype=asm \ ; RUN: %if --need=target_ARM32 --command %p2i --filetype=obj --disassemble \
; RUN: --target arm32 -i %s --args -Om1 --skip-unimplemented \ ; RUN: --target arm32 -i %s --args -Om1 \
; RUN: | %if --need=allow_dump --need=target_ARM32 --command FileCheck %s \ ; RUN: | %if --need=target_ARM32 --command FileCheck %s \
; RUN: --check-prefix=ARM32 ; RUN: --check-prefix=ARM32
; RUN: %if --need=allow_dump --need=target_MIPS32 --command %p2i \ ; RUN: %if --need=allow_dump --need=target_MIPS32 --command %p2i \
...@@ -135,8 +135,8 @@ entry: ...@@ -135,8 +135,8 @@ entry:
; CHECK-LABEL: doubleToSigned32Const ; CHECK-LABEL: doubleToSigned32Const
; CHECK: cvttsd2si ; CHECK: cvttsd2si
; ARM32-LABEL: doubleToSigned32Const ; ARM32-LABEL: doubleToSigned32Const
; ARM32-DAG: movw [[ADDR:r[0-9]+]], #:lower16:.L$ ; ARM32-DAG: movw [[ADDR:r[0-9]+]], #{{.*_MOVW_}}
; ARM32-DAG: movt [[ADDR]], #:upper16:.L$ ; ARM32-DAG: movt [[ADDR]], #{{.*_MOVT_}}
; ARM32-DAG: vldr [[DREG:d[0-9]+]], {{\[}}[[ADDR]]{{\]}} ; ARM32-DAG: vldr [[DREG:d[0-9]+]], {{\[}}[[ADDR]]{{\]}}
; ARM32-DAG: vcvt.s32.f64 [[REG:s[0-9]+]], [[DREG]] ; ARM32-DAG: vcvt.s32.f64 [[REG:s[0-9]+]], [[DREG]]
; ARM32-DAF: vmov {{r[0-9]+}}, [[REG]] ; ARM32-DAF: vmov {{r[0-9]+}}, [[REG]]
......
...@@ -5,13 +5,10 @@ ...@@ -5,13 +5,10 @@
; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 | FileCheck %s ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 | FileCheck %s
; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) ; RUN: %if --need=target_ARM32 \
; once enough infrastructure is in. Also, switch to --filetype=obj ; RUN: --command %p2i --filetype=obj \
; when possible. ; RUN: --disassemble --target arm32 -i %s --args -O2 \
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble \
; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \
; RUN: | %if --need=target_ARM32 --need=allow_dump \
; RUN: --command FileCheck --check-prefix ARM32 %s ; RUN: --command FileCheck --check-prefix ARM32 %s
; RUN: %if --need=target_MIPS32 --need=allow_dump \ ; RUN: %if --need=target_MIPS32 --need=allow_dump \
; RUN: --command %p2i --filetype=asm --assemble \ ; RUN: --command %p2i --filetype=asm --assemble \
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
; RUN: | %if --need=target_X8632 --command FileCheck %s ; RUN: | %if --need=target_X8632 --command FileCheck %s
; RUN: %if --need=target_ARM32 --command %p2i --filetype=asm --target arm32 \ ; RUN: %if --need=target_ARM32 --command %p2i --filetype=asm --target arm32 \
; RUN: -i %s --args -O2 --skip-unimplemented \ ; RUN: -i %s --args -O2 \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=target_ARM32 --command FileCheck %s ; RUN: | %if --need=target_ARM32 --command FileCheck %s
...@@ -33,14 +33,14 @@ ...@@ -33,14 +33,14 @@
; For now we can at least see the instructions / relocations. ; For now we can at least see the instructions / relocations.
; RUN: %if --need=target_ARM32 --command %p2i --filetype=asm --assemble \ ; RUN: %if --need=target_ARM32 --command %p2i --filetype=asm --assemble \
; RUN: --disassemble --target arm32 -i %s \ ; RUN: --disassemble --target arm32 -i %s \
; RUN: --args --verbose none --skip-unimplemented \ ; RUN: --args --verbose none \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=target_ARM32 --command FileCheck \ ; RUN: | %if --need=target_ARM32 --command FileCheck \
; RUN: --check-prefix=IASARM32 %s ; RUN: --check-prefix=IASARM32 %s
; RUN: %if --need=target_ARM32 --command %p2i --filetype=asm --assemble \ ; RUN: %if --need=target_ARM32 --command %p2i --filetype=asm --assemble \
; RUN: --disassemble --dis-flags=-t --target arm32 -i %s \ ; RUN: --disassemble --dis-flags=-t --target arm32 -i %s \
; RUN: --args --verbose none --skip-unimplemented \ ; RUN: --args --verbose none \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=target_ARM32 --command FileCheck --check-prefix=SYMTAB %s ; RUN: | %if --need=target_ARM32 --command FileCheck --check-prefix=SYMTAB %s
......
...@@ -5,14 +5,11 @@ ...@@ -5,14 +5,11 @@
; RUN: --target x8632 -i %s --args -O2 -allow-externally-defined-symbols \ ; RUN: --target x8632 -i %s --args -O2 -allow-externally-defined-symbols \
; RUN: | %if --need=target_X8632 --command FileCheck %s ; RUN: | %if --need=target_X8632 --command FileCheck %s
; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) ; RUN: %if --need=target_ARM32 \
; once enough infrastructure is in. Also, switch to --filetype=obj ; RUN: --command %p2i --filetype=obj \
; when possible. ; RUN: --disassemble --target arm32 -i %s --args -O2 \
; RUN: %if --need=target_ARM32 --need=allow_dump \
; RUN: --command %p2i --filetype=asm --assemble \
; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck --check-prefix ARM32 %s ; RUN: --command FileCheck --check-prefix ARM32 %s
; TODO(RKotler): Stop skipping unimplemented parts (via --skip-unimplemented) ; TODO(RKotler): Stop skipping unimplemented parts (via --skip-unimplemented)
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
; We only need to test ARM and other architectures which have limited space ; We only need to test ARM and other architectures which have limited space
; for specifying an offset within an instruction. ; for specifying an offset within an instruction.
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble --disassemble --target arm32 \ ; RUN: --command %p2i --filetype=obj --disassemble --target arm32 \
; RUN: -i %s --args -Om1 --skip-unimplemented --test-stack-extra 4096 \ ; RUN: -i %s --args -Om1 --test-stack-extra 4096 \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck --check-prefix ARM32 %s ; RUN: --command FileCheck --check-prefix ARM32 %s
declare i64 @dummy(i32 %t1, i32 %t2, i32 %t3, i64 %t4, i64 %t5) declare i64 @dummy(i32 %t1, i32 %t2, i32 %t3, i64 %t4, i64 %t5)
......
...@@ -9,19 +9,19 @@ ...@@ -9,19 +9,19 @@
; RUN: -allow-externally-defined-symbols | FileCheck %s ; RUN: -allow-externally-defined-symbols | FileCheck %s
; RUN: %if --need=allow_dump --need=target_ARM32 --command %p2i --filetype=asm \ ; RUN: %if --need=allow_dump --need=target_ARM32 --command %p2i --filetype=asm \
; RUN: --target arm32 -i %s --args -O2 --skip-unimplemented \ ; RUN: --target arm32 -i %s --args -O2 \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=allow_dump --need=target_ARM32 --command FileCheck %s \ ; RUN: | %if --need=allow_dump --need=target_ARM32 --command FileCheck %s \
; RUN: --check-prefix=ARM32 ; RUN: --check-prefix=ARM32
; RUN: %if --need=allow_dump --need=target_ARM32 --command %p2i --filetype=asm \ ; RUN: %if --need=allow_dump --need=target_ARM32 --command %p2i --filetype=asm \
; RUN: --target arm32 -i %s --args -O2 --skip-unimplemented \ ; RUN: --target arm32 -i %s --args -O2 \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=allow_dump --need=target_ARM32 --command FileCheck %s \ ; RUN: | %if --need=allow_dump --need=target_ARM32 --command FileCheck %s \
; RUN: --check-prefix=ARM32O2 ; RUN: --check-prefix=ARM32O2
; RUN: %if --need=allow_dump --need=target_ARM32 --command %p2i --filetype=asm \ ; RUN: %if --need=allow_dump --need=target_ARM32 --command %p2i --filetype=asm \
; RUN: --target arm32 -i %s --args -Om1 --skip-unimplemented \ ; RUN: --target arm32 -i %s --args -Om1 \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=allow_dump --need=target_ARM32 --command FileCheck %s \ ; RUN: | %if --need=allow_dump --need=target_ARM32 --command FileCheck %s \
; RUN: --check-prefix=ARM32 ; RUN: --check-prefix=ARM32
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
; RUN: --target x8632 --sandbox -i %s --args -Om1 \ ; RUN: --target x8632 --sandbox -i %s --args -Om1 \
; RUN: | %if --need=target_X8632 --command FileCheck --check-prefix OM1 %s ; RUN: | %if --need=target_X8632 --command FileCheck --check-prefix OM1 %s
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble --disassemble --target arm32 \ ; RUN: --command %p2i --filetype=obj --disassemble --target arm32 \
; RUN: -i %s --args -O2 --skip-unimplemented \ ; RUN: -i %s --args -O2 \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck --check-prefix ARM32 %s ; RUN: --command FileCheck --check-prefix ARM32 %s
; RUN: %if --need=target_MIPS32 --need=allow_dump \ ; RUN: %if --need=target_MIPS32 --need=allow_dump \
......
...@@ -27,11 +27,11 @@ ...@@ -27,11 +27,11 @@
; RUN: | %if --need=target_X8632 \ ; RUN: | %if --need=target_X8632 \
; RUN: --command FileCheck --check-prefix=CHECKO2UNSANDBOXEDREM %s ; RUN: --command FileCheck --check-prefix=CHECKO2UNSANDBOXEDREM %s
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble --disassemble --target arm32 \ ; RUN: --command %p2i --filetype=obj --disassemble --target arm32 \
; RUN: -i %s --args -O2 --skip-unimplemented \ ; RUN: -i %s --args -O2 \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck --check-prefix ARM32 %s ; RUN: --command FileCheck --check-prefix ARM32 %s
; RUN: %if --need=target_MIPS32 --need=allow_dump \ ; RUN: %if --need=target_MIPS32 --need=allow_dump \
...@@ -335,7 +335,7 @@ NonZero: ...@@ -335,7 +335,7 @@ NonZero:
; CHECK-LABEL: test_trap ; CHECK-LABEL: test_trap
; CHECK: ud2 ; CHECK: ud2
; ARM32-LABEL: test_trap ; ARM32-LABEL: test_trap
; ARM32: .word 0xe7fedef0 ; ARM32: udf
; MIPS32-LABEL: test_trap ; MIPS32-LABEL: test_trap
; MIPS32: teq zero,zero ; MIPS32: teq zero,zero
......
...@@ -23,16 +23,15 @@ ...@@ -23,16 +23,15 @@
; RUN: | %if --need=target_X8632 --command FileCheck %s ; RUN: | %if --need=target_X8632 --command FileCheck %s
; Test arm output ; Test arm output
; IAS is not implemented yet. ; RUN: %if --need=target_ARM32 --command %p2i --filetype=obj --target arm32 \
; RUN: %if --need=target_ARM32 --command %p2i --filetype=asm --target arm32 \ ; RUN: -i %s --disassemble --dis-flags=-rD \
; RUN: -i %s --assemble --disassemble --dis-flags=-rD \
; RUN: --args -sz-seed=1 -reorder-global-variables \ ; RUN: --args -sz-seed=1 -reorder-global-variables \
; RUN: --skip-unimplemented -O2 \ ; RUN: -O2 \
; RUN: | %if --need=target_ARM32 --command FileCheck %s ; RUN: | %if --need=target_ARM32 --command FileCheck %s
; RUN: %if --need=target_ARM32 --command %p2i --filetype=asm --target arm32 \ ; RUN: %if --need=target_ARM32 --command %p2i --filetype=obj --target arm32 \
; RUN: -i %s --assemble --disassemble --dis-flags=-rD \ ; RUN: -i %s --disassemble --dis-flags=-rD \
; RUN: --args -sz-seed=1 -reorder-global-variables \ ; RUN: --args -sz-seed=1 -reorder-global-variables \
; RUN: --skip-unimplemented -Om1 \ ; RUN: -Om1 \
; RUN: | %if --need=target_ARM32 --command FileCheck %s ; RUN: | %if --need=target_ARM32 --command FileCheck %s
......
...@@ -5,13 +5,10 @@ ...@@ -5,13 +5,10 @@
; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 \ ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 \
; RUN: -allow-externally-defined-symbols | FileCheck %s ; RUN: -allow-externally-defined-symbols | FileCheck %s
; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) ; RUN: %if --need=target_ARM32 \
; once enough infrastructure is in. Also, switch to --filetype=obj ; RUN: --command %p2i --filetype=obj \
; when possible. ; RUN: --disassemble --target arm32 -i %s --args -O2 \
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble \
; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \
; RUN: | %if --need=target_ARM32 --need=allow_dump \
; RUN: --command FileCheck --check-prefix ARM32 %s ; RUN: --command FileCheck --check-prefix ARM32 %s
; TODO(rkotler): Stop skipping unimplemented parts (via --skip-unimplemented) ; TODO(rkotler): Stop skipping unimplemented parts (via --skip-unimplemented)
......
...@@ -10,17 +10,17 @@ ...@@ -10,17 +10,17 @@
; RUN: --target x8632 -i %s --args -Om1 -allow-externally-defined-symbols \ ; RUN: --target x8632 -i %s --args -Om1 -allow-externally-defined-symbols \
; RUN: | %if --need=target_X8632 --command FileCheck %s ; RUN: | %if --need=target_X8632 --command FileCheck %s
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble \ ; RUN: --command %p2i --filetype=obj \
; RUN: --disassemble --target arm32 -i %s --args -O2 \ ; RUN: --disassemble --target arm32 -i %s --args -O2 \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-O2 %s ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-O2 %s
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble \ ; RUN: --command %p2i --filetype=obj \
; RUN: --disassemble --target arm32 -i %s --args -Om1 \ ; RUN: --disassemble --target arm32 -i %s --args -Om1 \
; RUN: -allow-externally-defined-symbols \ ; RUN: -allow-externally-defined-symbols \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-OM1 %s ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-OM1 %s
; RUN: %if --need=target_MIPS32 --need=allow_dump \ ; RUN: %if --need=target_MIPS32 --need=allow_dump \
......
...@@ -9,19 +9,16 @@ ...@@ -9,19 +9,16 @@
; RUN: --target x8632 -i %s --args -Om1 \ ; RUN: --target x8632 -i %s --args -Om1 \
; RUN: | %if --need=target_X8632 --command FileCheck %s ; RUN: | %if --need=target_X8632 --command FileCheck %s
; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) ; RUN: %if --need=target_ARM32 \
; once enough infrastructure is in. Also, switch to --filetype=obj ; RUN: --command %p2i --filetype=obj \
; when possible. ; RUN: --disassemble --target arm32 -i %s --args -O2 \
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble \
; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \
; RUN: | %if --need=target_ARM32 --need=allow_dump \
; RUN: --command FileCheck --check-prefix ARM32 %s ; RUN: --command FileCheck --check-prefix ARM32 %s
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble \ ; RUN: --command %p2i --filetype=obj \
; RUN: --disassemble --target arm32 -i %s --args -Om1 --skip-unimplemented \ ; RUN: --disassemble --target arm32 -i %s --args -Om1 \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck --check-prefix ARM32 %s ; RUN: --command FileCheck --check-prefix ARM32 %s
; RUN: %if --need=target_MIPS32 --need=allow_dump \ ; RUN: %if --need=target_MIPS32 --need=allow_dump \
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
; For x86 see adv-switch-opt.ll ; For x86 see adv-switch-opt.ll
; TODO(jvoung): Update to -02 once the phi assignments is done for ARM ; TODO(jvoung): Update to -02 once the phi assignments is done for ARM
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble --disassemble \ ; RUN: --command %p2i --filetype=obj --disassemble \
; RUN: --target arm32 -i %s --args -Om1 --skip-unimplemented \ ; RUN: --target arm32 -i %s --args -Om1 \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck --check-prefix ARM32 %s ; RUN: --command FileCheck --check-prefix ARM32 %s
; TODO(jaydeep.patil): Using --skip-unimplemented for MIPS32 ; TODO(jaydeep.patil): Using --skip-unimplemented for MIPS32
......
...@@ -7,15 +7,15 @@ ...@@ -7,15 +7,15 @@
; RUN: --target x8632 -i %s --args -Om1 \ ; RUN: --target x8632 -i %s --args -Om1 \
; RUN: | %if --need=target_X8632 --command FileCheck %s ; RUN: | %if --need=target_X8632 --command FileCheck %s
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble \ ; RUN: --command %p2i --filetype=obj \
; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \ ; RUN: --disassemble --target arm32 -i %s --args -O2 \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck --check-prefix ARM32 %s ; RUN: --command FileCheck --check-prefix ARM32 %s
; RUN: %if --need=target_ARM32 --need=allow_dump \ ; RUN: %if --need=target_ARM32 \
; RUN: --command %p2i --filetype=asm --assemble \ ; RUN: --command %p2i --filetype=obj \
; RUN: --disassemble --target arm32 -i %s --args -Om1 --skip-unimplemented \ ; RUN: --disassemble --target arm32 -i %s --args -Om1 \
; RUN: | %if --need=target_ARM32 --need=allow_dump \ ; RUN: | %if --need=target_ARM32 \
; RUN: --command FileCheck --check-prefix ARM32 %s ; RUN: --command FileCheck --check-prefix ARM32 %s
; RUN: %if --need=target_MIPS32 --need=allow_dump \ ; RUN: %if --need=target_MIPS32 --need=allow_dump \
...@@ -52,7 +52,7 @@ return: ; preds = %entry ...@@ -52,7 +52,7 @@ return: ; preds = %entry
; ARM32-LABEL: divide ; ARM32-LABEL: divide
; ARM32: tst ; ARM32: tst
; ARM32: .word 0xe7fedef0 ; ARM32: udf
; ARM32: bl {{.*}} __divsi3 ; ARM32: bl {{.*}} __divsi3
; ARM32: bx lr ; ARM32: bx lr
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment