1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/CodeGen/Hexagon/expand-condsets-basic.ll
Krzysztof Parzyszek bcfafa313d Expand MUX instructions early on Hexagon
This time with all files included.

llvm-svn: 233696
2015-03-31 13:35:12 +00:00

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
}