blob: 0cafd883f6947f5aeebe01eee90a9385c7dbd6bf [file] [log] [blame]
Juergen Ributzkaf09c7a32015-08-06 22:44:15 +00001; RUN: llc -mtriple=aarch64-apple-darwin -O0 -fast-isel -fast-isel-abort=0 -verify-machineinstrs < %s | FileCheck %s
2
3define void @test(i64 %a, i64 %b, i2* %c) {
4; CHECK-LABEL: test
Matthias Braunc045c552018-10-29 20:10:42 +00005; CHECK: and [[REG1:w[0-9]+]], {{w[0-9]+}}, #0x3
Juergen Ributzkaf09c7a32015-08-06 22:44:15 +00006; CHECK-NEXT: strb [[REG1]], {{\[}}x2{{\]}}
Matthias Braunc045c552018-10-29 20:10:42 +00007; CHECK-NEXT: tbz {{w[0-9]+}}, #0,
Juergen Ributzkaf09c7a32015-08-06 22:44:15 +00008 %1 = trunc i64 %a to i2
9 %2 = trunc i64 %b to i1
10; Force fast-isel to fall back to SDAG.
11 store i2 %1, i2* %c, align 8
12 br i1 %2, label %bb1, label %bb2
13
14bb1:
15 ret void
16
17bb2:
18 ret void
19}