blob: c018b2778b04bd44ff8c59c9fbf07bbe0a867792 [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
5; CHECK: and [[REG1:w[0-9]+]], w8, #0x3
6; CHECK-NEXT: strb [[REG1]], {{\[}}x2{{\]}}
7; CHECK: and [[REG2:w[0-9]+]], w8, #0x1
8; CHECK-NEXT: cmp [[REG2]], #0
9 %1 = trunc i64 %a to i2
10 %2 = trunc i64 %b to i1
11; Force fast-isel to fall back to SDAG.
12 store i2 %1, i2* %c, align 8
13 br i1 %2, label %bb1, label %bb2
14
15bb1:
16 ret void
17
18bb2:
19 ret void
20}