1 ; RUN: llc < %s -O3 -mtriple=aarch64-eabi | FileCheck %s
3 define i16 @test_1cmp_signed_1(ptr %ptr1) {
4 ; CHECK-LABEL: @test_1cmp_signed_1
8 %val = load i16, ptr %ptr1, align 2
9 %cmp = icmp eq i16 %val, -1
10 br i1 %cmp, label %if, label %if.then
17 define i16 @test_1cmp_signed_2(ptr %ptr1) {
18 ; CHECK-LABEL: @test_1cmp_signed_2
22 %val = load i16, ptr %ptr1, align 2
23 %cmp = icmp sge i16 %val, -1
24 br i1 %cmp, label %if, label %if.then
31 define i16 @test_1cmp_unsigned_1(ptr %ptr1) {
32 ; CHECK-LABEL: @test_1cmp_unsigned_1
36 %val = load i16, ptr %ptr1, align 2
37 %cmp = icmp uge i16 %val, -1
38 br i1 %cmp, label %if, label %if.then