mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 12:19:53 +00:00
e927841848
As discussed on PR27654, this patch fixes the triples of a lot of aarch64 tests and enables lit tests on windows This will hopefully help stop cases where windows developers break the aarch64 target Differential Revision: https://reviews.llvm.org/D22191 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275973 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
645 B
LLVM
20 lines
645 B
LLVM
; RUN: llc < %s -verify-machineinstrs -mtriple=arm64-eabi | FileCheck %s
|
|
|
|
; Check if sqshl/uqshl with constant shift amout can be selected.
|
|
define i64 @test_vqshld_s64_i(i64 %a) {
|
|
; CHECK-LABEL: test_vqshld_s64_i:
|
|
; CHECK: sqshl {{d[0-9]+}}, {{d[0-9]+}}, #36
|
|
%1 = tail call i64 @llvm.aarch64.neon.sqshl.i64(i64 %a, i64 36)
|
|
ret i64 %1
|
|
}
|
|
|
|
define i64 @test_vqshld_u64_i(i64 %a) {
|
|
; CHECK-LABEL: test_vqshld_u64_i:
|
|
; CHECK: uqshl {{d[0-9]+}}, {{d[0-9]+}}, #36
|
|
%1 = tail call i64 @llvm.aarch64.neon.uqshl.i64(i64 %a, i64 36)
|
|
ret i64 %1
|
|
}
|
|
|
|
declare i64 @llvm.aarch64.neon.uqshl.i64(i64, i64)
|
|
declare i64 @llvm.aarch64.neon.sqshl.i64(i64, i64)
|