Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 ; This file tests support for vector constant pooling. | |
| 2 | |
| 3 ; RUN: %llvm2ice -O2 --verbose none %s | FileCheck %s | |
| 4 ; RUN: %llvm2ice -Om1 --verbose none %s | FileCheck %s | |
| 5 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s | |
| 6 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s | |
| 7 | |
| 8 define <4 x float> @test_v4f32(i32 %arg) { | |
|
jvoung (off chromium)
2014/06/26 23:33:46
Might as well check an integer typed const pool va
| |
| 9 entry: | |
| 10 ret <4 x float> <float 4.000000e+00, float 3.000000e+00, float 2.000000e+00, f loat 1.000000e+00> | |
| 11 } | |
| 12 | |
| 13 ; CHECK: .long 0x40800000 | |
| 14 ; CHECK-NEXT: .long 0x40400000 | |
| 15 ; CHECK-NEXT: .long 0x40000000 | |
| 16 ; CHECK-NEXT: .long 0x3f800000 | |
| 17 | |
| 18 define <8 x i1> @test_v4i1(i32 %arg) { | |
| 19 entry: | |
| 20 ret <8 x i1> <i1 0, i1 1, i1 0, i1 1, i1 1, i1 1, i1 1, i1 1> | |
| 21 } | |
| 22 | |
| 23 ; CHECK: .short 0x0 | |
| 24 ; CHECK-NEXT: .short 0x1 | |
| 25 ; CHECK-NEXT: .short 0x0 | |
| 26 ; CHECK-NEXT: .short 0x1 | |
| 27 ; CHECK-NEXT: .short 0x1 | |
| 28 ; CHECK-NEXT: .short 0x1 | |
| 29 ; CHECK-NEXT: .short 0x1 | |
| 30 ; CHECK-NEXT: .short 0x1 | |
| 31 | |
| 32 ; ERRORS-NOT: ICE translation error | |
| 33 ; DUMP-NOT: SZ | |
| OLD | NEW |