mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
9e119aad03
Vector instructions are (still) not supported for either integer or floating point. Hopefully, that work will be landed shortly. llvm-svn: 215647
12 lines
289 B
LLVM
12 lines
289 B
LLVM
; RUN: opt < %s -reassociate -instcombine -S | FileCheck %s
|
|
|
|
define float @test1(float %A, float %B) {
|
|
; CHECK-LABEL: test1
|
|
; CHECK: %Z = fadd fast float %A, %B
|
|
; CHECK: ret float %Z
|
|
%W = fadd fast float %B, -5.0
|
|
%Y = fadd fast float %A, 5.0
|
|
%Z = fadd fast float %W, %Y
|
|
ret float %Z
|
|
}
|