mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
26ddf2b0be
be non contiguous, non overlapping and sorted by the lower end. While this is technically a backward incompatibility, every frontent currently produces range metadata with a single interval and we don't have any pass that merges intervals yet, so no existing bitcode files should be rejected by this. llvm-svn: 157741
37 lines
640 B
LLVM
37 lines
640 B
LLVM
; RUN: llvm-as < %s -o /dev/null
|
|
|
|
define i8 @f1(i8* %x) {
|
|
entry:
|
|
%y = load i8* %x, align 1, !range !0
|
|
ret i8 %y
|
|
}
|
|
!0 = metadata !{i8 0, i8 1}
|
|
|
|
define i8 @f2(i8* %x) {
|
|
entry:
|
|
%y = load i8* %x, align 1, !range !1
|
|
ret i8 %y
|
|
}
|
|
!1 = metadata !{i8 255, i8 1}
|
|
|
|
define i8 @f3(i8* %x) {
|
|
entry:
|
|
%y = load i8* %x, align 1, !range !2
|
|
ret i8 %y
|
|
}
|
|
!2 = metadata !{i8 1, i8 3, i8 5, i8 42}
|
|
|
|
define i8 @f4(i8* %x) {
|
|
entry:
|
|
%y = load i8* %x, align 1, !range !3
|
|
ret i8 %y
|
|
}
|
|
!3 = metadata !{i8 -1, i8 0, i8 1, i8 2}
|
|
|
|
define i8 @f5(i8* %x) {
|
|
entry:
|
|
%y = load i8* %x, align 1, !range !4
|
|
ret i8 %y
|
|
}
|
|
!4 = metadata !{i8 -1, i8 0, i8 1, i8 -2}
|