OLD | NEW |
1 ; This test checks support for vector type in MIPS. | 1 ; This test checks support for vector type in MIPS. |
2 | 2 |
3 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ | 3 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
4 ; RUN: --command %p2i --filetype=asm --assemble --disassemble --target mips32\ | 4 ; RUN: --command %p2i --filetype=asm --assemble --disassemble --target mips32\ |
5 ; RUN: -i %s --args -O2 --skip-unimplemented \ | 5 ; RUN: -i %s --args -O2 \ |
6 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ | 6 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ |
7 ; RUN: --command FileCheck --check-prefix MIPS32 %s | 7 ; RUN: --command FileCheck --check-prefix MIPS32 %s |
8 | 8 |
9 define internal i32 @test_0(<4 x i32> %a) #0 { | 9 define internal i32 @test_0(<4 x i32> %a) #0 { |
10 entry: | 10 entry: |
11 %vecext = extractelement <4 x i32> %a, i32 0 | 11 %vecext = extractelement <4 x i32> %a, i32 0 |
12 ret i32 %vecext | 12 ret i32 %vecext |
13 } | 13 } |
14 ; MIPS32-LABEL: test_0 | 14 ; MIPS32-LABEL: test_0 |
15 ; MIPS32: move v0,a0 | 15 ; MIPS32: move v0,a0 |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 %addr = inttoptr i32 %addr_i to <4 x i32>* | 237 %addr = inttoptr i32 %addr_i to <4 x i32>* |
238 %loaded = load <4 x i32>, <4 x i32>* %addr, align 4 | 238 %loaded = load <4 x i32>, <4 x i32>* %addr, align 4 |
239 %result = add <4 x i32> %addend, %loaded | 239 %result = add <4 x i32> %addend, %loaded |
240 ret <4 x i32> %result | 240 ret <4 x i32> %result |
241 } | 241 } |
242 ; MIPS32-LABEL: test_21 | 242 ; MIPS32-LABEL: test_21 |
243 ; MIPS32: add | 243 ; MIPS32: add |
244 ; MIPS32: add | 244 ; MIPS32: add |
245 ; MIPS32: add | 245 ; MIPS32: add |
246 ; MIPS32: add | 246 ; MIPS32: add |
OLD | NEW |