projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Teach CodeGen's version of computeMaskedBits to understand the range metadata.
[oota-llvm.git]
/
test
/
CodeGen
/
X86
/
pr12360.ll
1
; RUN: llc < %s -march=x86-64 | FileCheck %s
2
3
define zeroext i1 @f1(i8* %x) {
4
entry:
5
%0 = load i8* %x, align 1, !range !0
6
%tobool = trunc i8 %0 to i1
7
ret i1 %tobool
8
}
9
10
; CHECK: f1:
11
; CHECK: movb (%rdi), %al
12
; CHECK-NEXT: ret
13
14
!0 = metadata !{i8 0, i8 2}