From 9936d732cd17cdd9ed94fb52e6be2dbcbd5a5709 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 6 Jul 2022 09:45:01 +0200 Subject: [PATCH] [PowerPC] Simplify test for PR33636 (NFC) There was a lot of unnecessary code here. Add the -O0 flag to avoid using constant expressions, otherwise it may get folded away during EarlyCSE. Verified that this test fails prior to the fixing commit. --- llvm/test/CodeGen/PowerPC/PR33636.ll | 706 +---------------------------------- 1 file changed, 10 insertions(+), 696 deletions(-) diff --git a/llvm/test/CodeGen/PowerPC/PR33636.ll b/llvm/test/CodeGen/PowerPC/PR33636.ll index 4a1216d..2f65f54 100644 --- a/llvm/test/CodeGen/PowerPC/PR33636.ll +++ b/llvm/test/CodeGen/PowerPC/PR33636.ll @@ -1,702 +1,16 @@ +; RUN: llc -mtriple=powerpc64le-unknown-unknown -mcpu=pwr8 -O0 < %s | FileCheck %s + ; Just a test case for a crash reported in ; https://bugs.llvm.org/show_bug.cgi?id=33636 -; RUN: llc -mtriple=powerpc64le-unknown-unknown -mcpu=pwr8 < %s | FileCheck %s -@g_225 = external unnamed_addr global i16, align 2 -@g_756 = external global [6 x i32], align 4 -@g_3456 = external global i32, align 4 -@g_3708 = external global [9 x i32], align 4 -@g_1252 = external global i8*, align 8 -@g_3043 = external global float*, align 8 - -; Function Attrs: nounwind -define void @main() { - br i1 undef, label %1, label %4 - -;