mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-12 15:24:21 +00:00
95d594cac3
This is the CodeGen equivalent of r153747. I tested that there is not noticeable performance difference with any combination of -O0/-O2 /-g when compiling gcc as a single compilation unit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153817 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
260 B
LLVM
15 lines
260 B
LLVM
; 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}
|