mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
1e8839302b
This implements the review suggestion to simplify the AArch64 backend. If we later discover that we *really* need the extra complexity of the ConstantIslands pass for performance reasons it can be resurrected. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175258 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
552 B
LLVM
17 lines
552 B
LLVM
; RUN: llc -mtriple=aarch64-none-linux-gnu -verify-machineinstrs < %s | FileCheck %s
|
|
declare void @bar(i8*, i8*, i32*)
|
|
|
|
; SelectionDAG used to try to fold some fp128 operations using the ppc128 type,
|
|
; which is not supported.
|
|
|
|
define fp128 @test_folding() {
|
|
; CHECK: test_folding:
|
|
%l = alloca i32
|
|
store i32 42, i32* %l
|
|
%val = load i32* %l
|
|
%fpval = sitofp i32 %val to fp128
|
|
; If the value is loaded from a constant pool into an fp128, it's been folded
|
|
; successfully.
|
|
; CHECK: ldr {{q[0-9]+}}, [{{x[0-9]+}}, #:lo12:.LCPI
|
|
ret fp128 %fpval
|
|
} |