1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3
2 ; RUN: llc < %s -mtriple=aarch64-none-eabi | FileCheck %s
4 define i1 @load_bv_v4i8(i1 zeroext %a) {
5 ; CHECK-LABEL: load_bv_v4i8:
13 define noundef i1 @logger(i32 noundef %logLevel, ptr %ea, ptr %pll) {
14 ; CHECK-LABEL: logger:
15 ; CHECK: // %bb.0: // %entry
16 ; CHECK-NEXT: ldr w8, [x2]
17 ; CHECK-NEXT: cmp w8, w0
18 ; CHECK-NEXT: b.ls .LBB1_2
19 ; CHECK-NEXT: // %bb.1:
20 ; CHECK-NEXT: mov w0, wzr
22 ; CHECK-NEXT: .LBB1_2: // %land.rhs
23 ; CHECK-NEXT: ldr x8, [x1]
24 ; CHECK-NEXT: ldrb w8, [x8]
25 ; CHECK-NEXT: cmp w8, #0
26 ; CHECK-NEXT: cset w0, ne
29 %0 = load i32, ptr %pll, align 4
30 %cmp.not = icmp ugt i32 %0, %logLevel
31 br i1 %cmp.not, label %land.end, label %land.rhs
33 land.rhs: ; preds = %entry
34 %1 = load ptr, ptr %ea, align 8
35 %2 = load i8, ptr %1, align 1, !range !14, !noundef !15
36 %tobool.i = icmp ne i8 %2, 0
39 land.end: ; preds = %land.rhs, %entry
40 %3 = phi i1 [ false, %entry ], [ %tobool.i, %land.rhs ]
47 declare i64 @llvm.ctlz.i64(i64 %in, i1)
48 define i1 @lshr_ctlz_undef_cmpeq_one_i64(i64 %in) {
49 ; CHECK-LABEL: lshr_ctlz_undef_cmpeq_one_i64:
51 ; CHECK-NEXT: clz x8, x0
52 ; CHECK-NEXT: lsr x8, x8, #6
53 ; CHECK-NEXT: cmp x8, #1
54 ; CHECK-NEXT: cset w0, eq
56 %ctlz = call i64 @llvm.ctlz.i64(i64 %in, i1 -1)
57 %lshr = lshr i64 %ctlz, 6
58 %icmp = icmp eq i64 %lshr, 1
62 define i32 @PR17487(i1 %tobool) {
63 ; CHECK-LABEL: PR17487:
65 ; CHECK-NEXT: dup v0.2s, w0
66 ; CHECK-NEXT: mov w8, #1 // =0x1
67 ; CHECK-NEXT: dup v1.2d, x8
68 ; CHECK-NEXT: ushll v0.2d, v0.2s, #0
69 ; CHECK-NEXT: bic v0.16b, v1.16b, v0.16b
70 ; CHECK-NEXT: mov x8, v0.d[1]
71 ; CHECK-NEXT: cmp x8, #1
72 ; CHECK-NEXT: cset w0, ne
74 %tmp = insertelement <2 x i1> undef, i1 %tobool, i32 1
75 %tmp1 = zext <2 x i1> %tmp to <2 x i64>
76 %tmp2 = xor <2 x i64> %tmp1, <i64 1, i64 1>
77 %tmp3 = extractelement <2 x i64> %tmp2, i32 1
78 %add = add nsw i64 0, %tmp3
79 %cmp6 = icmp ne i64 %add, 1
80 %conv7 = zext i1 %cmp6 to i32