aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CodeGen/PowerPC/and-elim.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/and-elim.ll b/test/CodeGen/PowerPC/and-elim.ll
index 26bad360fd..d49672d8ce 100644
--- a/test/CodeGen/PowerPC/and-elim.ll
+++ b/test/CodeGen/PowerPC/and-elim.ll
@@ -9,3 +9,10 @@ void %test(ubyte* %P) {
store ubyte %Z, ubyte* %P
ret void
}
+
+ushort %test2(ushort %crc) { ; No and's should be needed for the ushorts here.
+ %tmp.1 = shr ushort %crc, ubyte 1
+ %tmp.7 = xor ushort %tmp.1, 40961
+ ret ushort %tmp.7
+}
+