aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/pr12360.ll
blob: c0af432cc8b5635cb30ad1ed8eb09e603f9dc180 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llc < %s -march=x86-64 | FileCheck %s

define zeroext i1 @f1(i8* %x) {
entry:
  %0 = load i8* %x, align 1, !range !0
  %tobool = trunc i8 %0 to i1
  ret i1 %tobool
}

; CHECK: f1:
; CHECK: movb	(%rdi), %al
; CHECK-NEXT: ret

!0 = metadata !{i8 0, i8 2}