[CodeGen][test] XFAIL CodeGen/Generic/ForceStackAlign.ll on SPARC
authorRainer Orth <ro@gcc.gnu.org>
Tue, 8 Feb 2022 07:57:59 +0000 (08:57 +0100)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 8 Feb 2022 07:57:59 +0000 (08:57 +0100)
`CodeGen/Generic/ForceStackAlign.ll` `FAIL`s on SPARC like this:

  LLVM ERROR: Function "g" required stack re-alignment, but LLVM couldn't
handle it (probably because it has a dynamic alloca).

According to the comments in `llvm/lib/Target/Sparc/SparcFrameLowering.cpp`
(`SparcFrameLowering::emitPrologue`) and `SparcRegisterInfo.cpp`
(`SparcRegisterInfo::canRealignStack`) this isn't going to change any time
soon, so this patch `XFAIL`s the test.

Tested on `sparcv9-sun-solaris2.11`.

Differential Revision: https://reviews.llvm.org/D119119

llvm/test/CodeGen/Generic/ForceStackAlign.ll

index ece31d2..d4bdb15 100644 (file)
@@ -5,6 +5,9 @@
 ; CHECK-LABEL: @f
 ; CHECK-LABEL: @g
 
+; Stack realignment not supported.
+; XFAIL: sparc
+
 define i32 @f(i8* %p) nounwind {
 entry:
   %0 = load i8, i8* %p