1 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
3 define i8 @neg1_zero(ptr %x) {
4 ; CHECK-LABEL: define i8 @neg1_zero
5 ; CHECK-SAME: (ptr [[X:%.*]]) {
7 ; CHECK-NEXT: [[Y:%.*]] = load i8, ptr [[X]], align 1, !range [[RNG0:![0-9]+]]
8 ; CHECK-NEXT: ret i8 [[Y]]
11 %y = load i8, ptr %x, align 1, !range !0
15 define <2 x i8> @neg1_zero_vector(ptr %x) {
16 ; CHECK-LABEL: define <2 x i8> @neg1_zero_vector
17 ; CHECK-SAME: (ptr [[X:%.*]]) {
19 ; CHECK-NEXT: [[Y:%.*]] = load <2 x i8>, ptr [[X]], align 1, !range [[RNG0]]
20 ; CHECK-NEXT: ret <2 x i8> [[Y]]
23 %y = load <2 x i8>, ptr %x, align 1, !range !0
30 ; CHECK: [[RNG0]] = !{i8 -1, i8 0}