diff options
Diffstat (limited to 'test/CodeGen/AArch64/arm64-fast-isel-br.ll')
-rw-r--r-- | test/CodeGen/AArch64/arm64-fast-isel-br.ll | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/test/CodeGen/AArch64/arm64-fast-isel-br.ll b/test/CodeGen/AArch64/arm64-fast-isel-br.ll index 37a8295..f896d85 100644 --- a/test/CodeGen/AArch64/arm64-fast-isel-br.ll +++ b/test/CodeGen/AArch64/arm64-fast-isel-br.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -O0 -fast-isel-abort -mtriple=arm64-apple-darwin -mcpu=cyclone | FileCheck %s +; RUN: llc -O0 -fast-isel-abort -mtriple=arm64-apple-darwin -mcpu=cyclone -verify-machineinstrs < %s | FileCheck %s define void @branch1() nounwind uwtable ssp { %x = alloca i32, align 4 @@ -95,7 +95,7 @@ entry: store i64 %d, i64* %d.addr, align 8 %0 = load i16* %b.addr, align 2 ; CHECK: and w0, w0, #0x1 -; CHECK: subs w0, w0, #0 +; CHECK: cmp w0, #0 ; CHECK: b.eq LBB4_2 %conv = trunc i16 %0 to i1 br i1 %conv, label %if.then, label %if.end @@ -107,7 +107,7 @@ if.then: ; preds = %entry if.end: ; preds = %if.then, %entry %1 = load i32* %c.addr, align 4 ; CHECK: and w[[REG:[0-9]+]], w{{[0-9]+}}, #0x1 -; CHECK: subs w{{[0-9]+}}, w[[REG]], #0 +; CHECK: cmp w[[REG]], #0 ; CHECK: b.eq LBB4_4 %conv1 = trunc i32 %1 to i1 br i1 %conv1, label %if.then3, label %if.end4 @@ -118,7 +118,7 @@ if.then3: ; preds = %if.end if.end4: ; preds = %if.then3, %if.end %2 = load i64* %d.addr, align 8 -; CHECK: subs w{{[0-9]+}}, w{{[0-9]+}}, #0 +; CHECK: cmp w{{[0-9]+}}, #0 ; CHECK: b.eq LBB4_6 %conv5 = trunc i64 %2 to i1 br i1 %conv5, label %if.then7, label %if.end8 @@ -137,11 +137,10 @@ declare void @foo1() ; rdar://15174028 define i32 @trunc64(i64 %foo) nounwind { ; CHECK: trunc64 -; CHECK: orr [[REG:x[0-9]+]], xzr, #0x1 -; CHECK: and [[REG2:x[0-9]+]], x0, [[REG]] -; CHECK: mov x[[REG3:[0-9]+]], [[REG2]] -; CHECK: and [[REG4:w[0-9]+]], w[[REG3]], #0x1 -; CHECK: subs {{w[0-9]+}}, [[REG4]], #0 +; CHECK: and [[REG1:x[0-9]+]], x0, #0x1 +; CHECK: mov x[[REG2:[0-9]+]], [[REG1]] +; CHECK: and [[REG3:w[0-9]+]], w[[REG2]], #0x1 +; CHECK: cmp [[REG3]], #0 ; CHECK: b.eq LBB5_2 %a = and i64 %foo, 1 %b = trunc i64 %a to i1 |