aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/pr12360.ll
blob: b57e322b2ce8f0a00215bd589f6ce860fb25bca2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llc < %s -mtriple=x86_64-apple-darwin | 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}