mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
4654bc762e
This time with all files included. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233696 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
244 B
LLVM
12 lines
244 B
LLVM
; RUN: llc -march=hexagon < %s | FileCheck %s
|
|
; CHECK: if{{.*}}add
|
|
; CHECK: if{{.*}}sub
|
|
|
|
define i32 @foo (i1 %a, i32 %b, i32 %c, i32 %d) nounwind {
|
|
%1 = add i32 %b, %d
|
|
%2 = sub i32 %c, %d
|
|
%3 = select i1 %a, i32 %1, i32 %2
|
|
ret i32 %3
|
|
}
|
|
|