1 ; RUN: llc < %s -O3 -mtriple=aarch64-eabi | FileCheck %s
3 define i16 @test_1cmp_signed_1(i16* %ptr1) {
4 ; CHECK-LABEL: @test_1cmp_signed_1
8 %addr = getelementptr inbounds i16, i16* %ptr1, i16 0
9 %val = load i16, i16* %addr, align 2
10 %cmp = icmp eq i16 %val, -1
11 br i1 %cmp, label %if, label %if.then
18 define i16 @test_1cmp_signed_2(i16* %ptr1) {
19 ; CHECK-LABEL: @test_1cmp_signed_2
23 %addr = getelementptr inbounds i16, i16* %ptr1, i16 0
24 %val = load i16, i16* %addr, align 2
25 %cmp = icmp sge i16 %val, -1
26 br i1 %cmp, label %if, label %if.then
33 define i16 @test_1cmp_unsigned_1(i16* %ptr1) {
34 ; CHECK-LABEL: @test_1cmp_unsigned_1
38 %addr = getelementptr inbounds i16, i16* %ptr1, i16 0
39 %val = load i16, i16* %addr, align 2
40 %cmp = icmp uge i16 %val, -1
41 br i1 %cmp, label %if, label %if.then