diff options
| author | Scott Michel <scottm@aero.org> | 2007-12-17 22:32:34 +0000 |
|---|---|---|
| committer | Scott Michel <scottm@aero.org> | 2007-12-17 22:32:34 +0000 |
| commit | c5cccb9e60c4f74a0f66585054728550559fa38d (patch) | |
| tree | 3a68ba9543865d73c9bfd37a69766e9f38a6d84a /llvm/test/CodeGen/CellSPU/and_ops.ll | |
| parent | bd5362511d31142fc62d5f91d13a51f499f509f9 (diff) | |
| download | bcm5719-llvm-c5cccb9e60c4f74a0f66585054728550559fa38d.tar.gz bcm5719-llvm-c5cccb9e60c4f74a0f66585054728550559fa38d.zip | |
- Restore some i8 functionality in CellSPU
- New test case: nand.ll
llvm-svn: 45130
Diffstat (limited to 'llvm/test/CodeGen/CellSPU/and_ops.ll')
| -rw-r--r-- | llvm/test/CodeGen/CellSPU/and_ops.ll | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/CellSPU/and_ops.ll b/llvm/test/CodeGen/CellSPU/and_ops.ll index 5c88d7ed645..f23355ee53c 100644 --- a/llvm/test/CodeGen/CellSPU/and_ops.ll +++ b/llvm/test/CodeGen/CellSPU/and_ops.ll @@ -1,9 +1,9 @@ ; RUN: llvm-as -o - %s | llc -march=cellspu > %t1.s -; RUN: grep and %t1.s | count 227 +; RUN: grep and %t1.s | count 232 ; RUN: grep andc %t1.s | count 85 ; RUN: grep andi %t1.s | count 36 -; RUN: grep andhi %t1.s | count 31 -; RUN: grep andbi %t1.s | count 1 +; RUN: grep andhi %t1.s | count 30 +; RUN: grep andbi %t1.s | count 4 ; AND instruction generation: define <4 x i32> @and_v4i32_1(<4 x i32> %arg1, <4 x i32> %arg2) { @@ -258,13 +258,19 @@ define <16 x i8> @and_v16i8(<16 x i8> %in) { } define i8 @and_u8(i8 zeroext %in) zeroext { - ; ANDI generated: - %tmp37 = and i8 %in, 37 ; <i8> [#uses=1] + ; ANDBI generated: + %tmp37 = and i8 %in, 37 ret i8 %tmp37 } -define i8 @and_i8(i8 signext %in) signext { - ; ANDHI generated - %tmp38 = and i8 %in, 37 ; <i8> [#uses=1] +define i8 @and_sext8(i8 signext %in) signext { + ; ANDBI generated + %tmp38 = and i8 %in, 37 + ret i8 %tmp38 +} + +define i8 @and_i8(i8 %in) { + ; ANDBI generated + %tmp38 = and i8 %in, 205 ret i8 %tmp38 } |

