brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · bb0f0ae Raw
21 lines · plain
1; RUN: llc -O0 -mtriple=x86_64-linux-gnu -global-isel -global-isel-abort=2 -pass-remarks-missed='gisel*' -verify-machineinstrs %s -o %t.out 2> %t.err2; RUN: FileCheck %s --check-prefix=FALLBACK-WITH-REPORT-OUT < %t.out3; RUN: FileCheck %s --check-prefix=FALLBACK-WITH-REPORT-ERR < %t.err4; This file checks that the fallback path to selection dag works.5; The test is fragile in the sense that it must be updated to expose6; something that fails with global-isel.7; When we cannot produce a test case anymore, that means we can remove8; the fallback path.9 10; Check that we fallback on byVal argument11; FALLBACK-WITH-REPORT-ERR: remark: <unknown>:0:0: unable to translate instruction: call: '  call void @ScaleObjectOverwrite_3(ptr %index, ptr byval(%struct.PointListStruct) %index)' (in function: ScaleObjectOverwrite_2)12; FALLBACK-WITH-REPORT-ERR: warning: Instruction selection used fallback path for ScaleObjectOverwrite_213; FALLBACK-WITH-REPORT-OUT-LABEL: ScaleObjectOverwrite_2:14%struct.PointListStruct = type { ptr, ptr }15declare void @ScaleObjectOverwrite_3(ptr %index, ptr byval(%struct.PointListStruct) %index2)16define void @ScaleObjectOverwrite_2(ptr %index) {17entry:18  call void @ScaleObjectOverwrite_3(ptr %index, ptr byval(%struct.PointListStruct) %index)19  ret void20}21