aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/CellSPU/sext128.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/CellSPU/sext128.ll')
-rw-r--r--test/CodeGen/CellSPU/sext128.ll21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/CodeGen/CellSPU/sext128.ll b/test/CodeGen/CellSPU/sext128.ll
index 027c1c5..6ae9aa5 100644
--- a/test/CodeGen/CellSPU/sext128.ll
+++ b/test/CodeGen/CellSPU/sext128.ll
@@ -48,3 +48,24 @@ entry:
}
declare i32 @myfunc(float)
+
+define i128 @func1(i8 %u) {
+entry:
+; CHECK: xsbh
+; CHECK: xshw
+; CHECK: rotmai
+; CHECK: shufb
+; CHECK: bi $lr
+ %0 = sext i8 %u to i128
+ ret i128 %0
+}
+
+define i128 @func2(i16 %u) {
+entry:
+; CHECK: xshw
+; CHECK: rotmai
+; CHECK: shufb
+; CHECK: bi $lr
+ %0 = sext i16 %u to i128
+ ret i128 %0
+}