Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GlobalIsel] allow x86_fp80 values to be dumped.
Summary: Otherwise the fallback path fails with an assertion on x86_64 targets, when "x86_fp80" is encountered. Reviewers: t.p.northover, zvi, guyblank Reviewed By: zvi Subscribers: rovka, kristof.beyls, llvm-commits Differential Revision: https://reviews.llvm.org/D34975 llvm-svn: 307140
- Loading branch information
Igor Breger
committed
Jul 5, 2017
1 parent
05e704f
commit 55e2f59
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
; 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.err | ||
; RUN: FileCheck %s --check-prefix=FALLBACK-WITH-REPORT-OUT < %t.out | ||
; RUN: FileCheck %s --check-prefix=FALLBACK-WITH-REPORT-ERR < %t.err | ||
; This file checks that the fallback path to selection dag works. | ||
; The test is fragile in the sense that it must be updated to expose | ||
; something that fails with global-isel. | ||
; When we cannot produce a test case anymore, that means we can remove | ||
; the fallback path. | ||
|
||
; Check that we fallback on invoke translation failures. | ||
; FALLBACK-WITH-REPORT-ERR: remark: <unknown>:0:0: unable to legalize instruction: %vreg1<def>(s80) = G_FCONSTANT x86_fp80 0xK4002A000000000000000 | ||
; FALLBACK-WITH-REPORT-ERR: warning: Instruction selection used fallback path for test_x86_fp80_dump | ||
; FALLBACK-WITH-REPORT-OUT-LABEL: test_x86_fp80_dump: | ||
define void @test_x86_fp80_dump(x86_fp80* %ptr){ | ||
store x86_fp80 0xK4002A000000000000000, x86_fp80* %ptr, align 16 | ||
ret void | ||
} | ||
|