mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
3b41039163
Vector instructions are (still) not supported for either integer or floating point. Hopefully, that work will be landed shortly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215647 91177308-0d34-0410-b5e6-96231b3b80d8
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
|
|
}
|