[PATCH] D16869: Fix printing of f16 machine operands
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 3 16:25:37 PST 2016
rampitec added a comment.
In http://reviews.llvm.org/D16869#343619, @hfinkel wrote:
> Please include a test case (you'll need to put '; REQUIRES: asserts' in it if you're checking debug output. Maybe, however, you can get the same problem if you use MIR, in which case that would be better.
The testcase is simple:
; RUN: llc -march=hsail -print-after=dead-mi-elimination < %s 2>&1 | FileCheck %s
; CHECK: half 4.000000e+00
define half @half_const(half %in) {
entry:
%add = fadd half %in, 0xH4400
ret half %add
}
Though I found no backend in the trunk where a half immediate survives instruction selection and present as machine operand, thus I do not see what to put into -march for testing.
Repository:
rL LLVM
http://reviews.llvm.org/D16869
More information about the llvm-commits
mailing list