mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-25 22:12:57 +02:00
194491d9b0
llvm-svn: 153818
15 lines
275 B
LLVM
15 lines
275 B
LLVM
; 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}
|