aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/Thumb/cmp-add-fold.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Thumb/cmp-add-fold.ll')
-rw-r--r--test/CodeGen/Thumb/cmp-add-fold.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CodeGen/Thumb/cmp-add-fold.ll b/test/CodeGen/Thumb/cmp-add-fold.ll
index b0ad8ab93f8a..aa61b0825b0c 100644
--- a/test/CodeGen/Thumb/cmp-add-fold.ll
+++ b/test/CodeGen/Thumb/cmp-add-fold.ll
@@ -2,8 +2,9 @@
; RUN: llc -mtriple=thumbv7m-eabi -verify-machineinstrs < %s | FileCheck --check-prefix=CHECK --check-prefix=T2 %s
; CHECK-LABEL: addri1:
-; CHECK: adds r0, #3
+; T1: adds r0, r0, #3
; T1-NEXT: b{{eq|ne}}
+; T2: adds r0, #3
; T2-NOT: cmp
define i32 @addri1(i32 %a, i32 %b) {
%c = add i32 %a, 3