mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-29 13:29:28 +00:00
This commit starts with a "git mv ARM64 AArch64" and continues out from there, renaming the C++ classes, intrinsics, and other target-local objects for consistency. "ARM64" test directories are also moved, and tests that began their life in ARM64 use an arm64 triple, those from AArch64 use an aarch64 triple. Both should be equivalent though. This finishes the AArch64 merge, and everyone should feel free to continue committing as normal now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209577 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
774 B
LLVM
28 lines
774 B
LLVM
; RUN: opt -mtriple=arm64-darwin-unknown -S -consthoist < %s | FileCheck %s
|
|
|
|
define i128 @test1(i128 %a) nounwind {
|
|
; CHECK-LABEL: test1
|
|
; CHECK: %const = bitcast i128 12297829382473034410122878 to i128
|
|
%1 = add i128 %a, 12297829382473034410122878
|
|
%2 = add i128 %1, 12297829382473034410122878
|
|
ret i128 %2
|
|
}
|
|
|
|
; Check that we don't hoist large, but cheap constants
|
|
define i512 @test2(i512 %a) nounwind {
|
|
; CHECK-LABEL: test2
|
|
; CHECK-NOT: %const = bitcast i512 7 to i512
|
|
%1 = and i512 %a, 7
|
|
%2 = or i512 %1, 7
|
|
ret i512 %2
|
|
}
|
|
|
|
; Check that we don't hoist the shift value of a shift instruction.
|
|
define i512 @test3(i512 %a) nounwind {
|
|
; CHECK-LABEL: test3
|
|
; CHECK-NOT: %const = bitcast i512 504 to i512
|
|
%1 = shl i512 %a, 504
|
|
%2 = ashr i512 %1, 504
|
|
ret i512 %2
|
|
}
|