44 lines · plain
1; RUN: llc < %s -O3 -mtriple=aarch64 | FileCheck %s 2 3define i16 @test_1cmp_signed_1(ptr %ptr1) {4; CHECK-LABEL: @test_1cmp_signed_15; CHECK: ldrsh6; CHECK-NEXT: cmn7entry:8 %val = load i16, ptr %ptr1, align 29 %cmp = icmp eq i16 %val, -110 br i1 %cmp, label %if, label %if.then11if:12 ret i16 113if.then:14 ret i16 015}16 17define i16 @test_1cmp_signed_2(ptr %ptr1) {18; CHECK-LABEL: @test_1cmp_signed_219; CHECK: ldrsh20; CHECK-NEXT: cmn21entry:22 %val = load i16, ptr %ptr1, align 223 %cmp = icmp sge i16 %val, -124 br i1 %cmp, label %if, label %if.then25if:26 ret i16 127if.then:28 ret i16 029}30 31define i16 @test_1cmp_unsigned_1(ptr %ptr1) {32; CHECK-LABEL: @test_1cmp_unsigned_133; CHECK: ldrsh34; CHECK-NEXT: cmn35entry:36 %val = load i16, ptr %ptr1, align 237 %cmp = icmp uge i16 %val, -138 br i1 %cmp, label %if, label %if.then39if:40 ret i16 141if.then:42 ret i16 043} 44