summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AVR
diff options
context:
space:
mode:
authorDylan McKay <me@dylanmckay.io>2017-05-31 06:27:46 +0000
committerDylan McKay <me@dylanmckay.io>2017-05-31 06:27:46 +0000
commit043fa4b3d62190b45390347fc1a39e1c75e9ea0d (patch)
tree14c44a1ff70c4c4af792b46dab4b3975bb69aa90 /llvm/test/CodeGen/AVR
parent48614d4a2c5401bc24a16739b51f02ba3b395c4b (diff)
downloadbcm5719-llvm-043fa4b3d62190b45390347fc1a39e1c75e9ea0d.tar.gz
bcm5719-llvm-043fa4b3d62190b45390347fc1a39e1c75e9ea0d.zip
[AVR] Fix a big in shift operator lowering; Authored by Dr. Gergo Erdi
When generating code for a shift loop, check the shift amount against the literal value 0, not R0 llvm-svn: 304284
Diffstat (limited to 'llvm/test/CodeGen/AVR')
-rw-r--r--llvm/test/CodeGen/AVR/rot.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/AVR/rot.ll b/llvm/test/CodeGen/AVR/rot.ll
index e43daf3e6aa..a7b77d97ba6 100644
--- a/llvm/test/CodeGen/AVR/rot.ll
+++ b/llvm/test/CodeGen/AVR/rot.ll
@@ -6,7 +6,7 @@
define i8 @rol8(i8 %val, i8 %amt) {
; CHECK: andi r22, 7
- ; CHECK-NEXT: cp r22, r0
+ ; CHECK-NEXT: cpi r22, 0
; CHECK-NEXT: breq LBB0_2
; CHECK-NEXT: LBB0_1:
@@ -32,7 +32,7 @@ define i8 @rol8(i8 %val, i8 %amt) {
define i8 @ror8(i8 %val, i8 %amt) {
; CHECK: andi r22, 7
- ; CHECK-NEXT: cp r22, r0
+ ; CHECK-NEXT: cpi r22, 0
; CHECK-NEXT: breq LBB1_2
; CHECK-NEXT: LBB1_1:
OpenPOWER on IntegriCloud