mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
d49cb60862
Summary: This catches malformed mir files which specify alignment as log2 instead of pow2. See https://reviews.llvm.org/D65945 for reference, This is patch is part of a series to introduce an Alignment type. See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html See this patch for the introduction of the type: https://reviews.llvm.org/D64790 Reviewers: courbet Subscribers: MatzeB, qcolombet, dschuff, arsenm, sdardis, nemanjai, jvesely, nhaehnle, hiraditya, kbarton, asb, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, jrtc27, MaskRay, zzheng, edward-jones, atanasyan, rogfer01, MartinMosbeck, brucehoult, the_o, PkmX, jocewei, jsji, Petar.Avramovic, asbirlea, s.egerton, pzheng, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D67433 llvm-svn: 371608
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
# RUN: llc -O0 -run-pass=legalizer -global-isel-abort=0 %s -o - | FileCheck %s
|
|
--- |
|
|
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
|
|
target triple = "aarch64"
|
|
|
|
define fp128 @x(fp128 %a) {
|
|
entry:
|
|
%a.addr = alloca fp128, align 16
|
|
store fp128 %a, fp128* %a.addr, align 16
|
|
%0 = load fp128, fp128* %a.addr, align 16
|
|
%sub = fsub fp128 0xL00000000000000008000000000000000, %0
|
|
ret fp128 %sub
|
|
}
|
|
|
|
...
|
|
---
|
|
name: x
|
|
alignment: 4
|
|
exposesReturnsTwice: false
|
|
legalized: false
|
|
regBankSelected: false
|
|
selected: false
|
|
tracksRegLiveness: true
|
|
fixedStack:
|
|
stack:
|
|
- { id: 0, name: a.addr, type: default, offset: 0, size: 16, alignment: 16,
|
|
stack-id: default, callee-saved-register: '', callee-saved-restored: true,
|
|
debug-info-variable: '', debug-info-expression: '',
|
|
debug-info-location: '' }
|
|
body: |
|
|
bb.1.entry:
|
|
liveins: $q0
|
|
|
|
; This test just checks we don't crash on G_FNEG of FP128 types. Expect to fall
|
|
; back until support is added for fp128.
|
|
; CHECK: ret
|
|
%0:_(s128) = COPY $q0
|
|
%1:_(p0) = G_FRAME_INDEX %stack.0.a.addr
|
|
G_STORE %0(s128), %1(p0) :: (store 16 into %ir.a.addr)
|
|
%2:_(s128) = G_LOAD %1(p0) :: (load 16 from %ir.a.addr)
|
|
%3:_(s128) = G_FNEG %2
|
|
$q0 = COPY %3(s128)
|
|
RET_ReallyLR implicit $q0
|
|
|
|
...
|