Scott Michel | 045a145 | 2008-11-24 18:20:46 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as -o - %s | llc -march=cellspu > %t1.s |
| 2 | ; RUN: grep {fsmbi.*61680} %t1.s | count 1 |
| 3 | ; RUN: grep rotqmbyi %t1.s | count 1 |
| 4 | ; RUN: grep rotmai %t1.s | count 1 |
| 5 | ; RUN: grep selb %t1.s | count 1 |
| 6 | ; RUN: grep shufb %t1.s | count 2 |
| 7 | ; RUN: grep cg %t1.s | count 1 |
| 8 | ; RUN: grep addx %t1.s | count 1 |
| 9 | |
| 10 | ; ModuleID = 'stores.bc' |
| 11 | target datalayout = "E-p:32:32:128-f64:64:128-f32:32:128-i64:32:128-i32:32:128-i16:16:128-i8:8:128-i1:8:128-a0:0:128-v128:128:128-s0:128:128" |
| 12 | target triple = "spu" |
| 13 | |
| 14 | define i64 @sext_i64_i32(i32 %a) nounwind { |
| 15 | %1 = sext i32 %a to i64 |
| 16 | ret i64 %1 |
| 17 | } |
| 18 | |
| 19 | define i64 @zext_i64_i32(i32 %a) nounwind { |
| 20 | %1 = zext i32 %a to i64 |
| 21 | ret i64 %1 |
| 22 | } |
| 23 | |
| 24 | define i64 @add_i64(i64 %a, i64 %b) nounwind { |
| 25 | %1 = add i64 %a, %b |
| 26 | ret i64 %1 |
| 27 | } |