llvm-project/llvm/test/CodeGen/SystemZ/inline-asm-f-constraint-softfloat.ll
Jonas Paulsson b4b4950f7f [SystemZ] Allow fp/int casting with inline assembly operands.
Support bitcasting between int/fp/vector values and 'r'/'f'/'v' inline
assembly operands. This is intended to match GCCs beahvior.

Reviewed By: Ulrich Weigand

Differential Revision: https://reviews.llvm.org/D146059
2023-03-24 19:57:25 +01:00

10 lines
301 B
LLVM

; RUN: not llc -mtriple=s390x-linux-gnu -mcpu=z15 -mattr=soft-float < %s 2>&1 | FileCheck %s
; CHECK: error: couldn't allocate output register for constraint 'f'
define signext i32 @int_and_f(i32 signext %cc_dep1) {
entry:
%0 = tail call i32 asm sideeffect "", "=f,0"(i32 %cc_dep1)
ret i32 %0
}