aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/PowerPC/and_sext.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/and_sext.ll b/test/CodeGen/PowerPC/and_sext.ll
index af68d81..78debf3 100644
--- a/test/CodeGen/PowerPC/and_sext.ll
+++ b/test/CodeGen/PowerPC/and_sext.ll
@@ -21,3 +21,9 @@ short %test2(short %X, short %x) {
ret short %retval
}
+short %test3(uint %X) {
+ %tmp1 = shr uint %X, ubyte 16
+ %tmp1 = cast uint %tmp1 to short
+ ret short %tmp1
+}
+