mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 18:33:22 +00:00
Essentially the same as the GEP change in r230786. A similar migration script can be used to update test cases, though a few more test case improvements/changes were required this time around: (r229269-r229278) import fileinput import sys import re pat = re.compile(r"((?:=|:|^)\s*load (?:atomic )?(?:volatile )?(.*?))(| addrspace\(\d+\) *)\*($| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$)") for line in sys.stdin: sys.stdout.write(re.sub(pat, r"\1, \2\3*\4", line)) Reviewers: rafael, dexonsmith, grosser Differential Revision: http://reviews.llvm.org/D7649 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230794 91177308-0d34-0410-b5e6-96231b3b80d8
47 lines
1.8 KiB
LLVM
47 lines
1.8 KiB
LLVM
; XFAIL:
|
|
; RUN: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s
|
|
|
|
; Check that we don't generate an invalid packet with too many instructions
|
|
; due to a store that has a must-extend operand.
|
|
|
|
; CHECK: CuSuiteAdd.exit.us
|
|
; CHECK: {
|
|
; CHECK-NOT: call abort
|
|
; CHECK: memw(##0)
|
|
; CHECK: memw(r{{[0-9+]}}<<#2 + ##4)
|
|
; CHECK: }
|
|
|
|
%struct.CuTest.1.28.31.37.40.43.52.55.67.85.111 = type { i8*, void (%struct.CuTest.1.28.31.37.40.43.52.55.67.85.111*)*, i32, i32, i8*, [23 x i32]* }
|
|
%struct.CuSuite.2.29.32.38.41.44.53.56.68.86.112 = type { i32, [1024 x %struct.CuTest.1.28.31.37.40.43.52.55.67.85.111*], i32 }
|
|
|
|
@__func__.CuSuiteAdd = external unnamed_addr constant [11 x i8], align 8
|
|
@.str24 = external unnamed_addr constant [140 x i8], align 8
|
|
|
|
declare void @_Assert()
|
|
|
|
define void @CuSuiteAddSuite() nounwind {
|
|
entry:
|
|
br i1 undef, label %for.body.us, label %for.end
|
|
|
|
for.body.us: ; preds = %entry
|
|
%0 = load %struct.CuTest.1.28.31.37.40.43.52.55.67.85.111*, %struct.CuTest.1.28.31.37.40.43.52.55.67.85.111** null, align 4
|
|
%1 = load i32, i32* undef, align 4
|
|
%cmp.i.us = icmp slt i32 %1, 1024
|
|
br i1 %cmp.i.us, label %CuSuiteAdd.exit.us, label %cond.false6.i.us
|
|
|
|
cond.false6.i.us: ; preds = %for.body.us
|
|
tail call void @_Assert() nounwind
|
|
unreachable
|
|
|
|
CuSuiteAdd.exit.us: ; preds = %for.body.us
|
|
%arrayidx.i.us = getelementptr inbounds %struct.CuSuite.2.29.32.38.41.44.53.56.68.86.112, %struct.CuSuite.2.29.32.38.41.44.53.56.68.86.112* null, i32 0, i32 1, i32 %1
|
|
store %struct.CuTest.1.28.31.37.40.43.52.55.67.85.111* %0, %struct.CuTest.1.28.31.37.40.43.52.55.67.85.111** %arrayidx.i.us, align 4
|
|
call void @llvm.trap()
|
|
unreachable
|
|
|
|
for.end: ; preds = %entry
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.trap() noreturn nounwind
|