llvm-project/llvm/test/Transforms/GlobalOpt/2022-08-23-ScalableVectorCrash.ll
Bjorn Pettersson 0676acb6fd [test] Switch to use -passes syntax in a bunch of test cases
Should cover most of the tests for GVN, GVNHoist, GVNSink, GlobalOpt,
GlobalSplit, InstCombine, Reassociate, SROA and TailCallElim that
had not been updated earlier.
2022-11-29 13:29:02 +01:00

16 lines
446 B
LLVM

; RUN: opt -passes=globalopt < %s
; Ensure we don't ICE by trying to optimize a scalable vector load of a global
; variable.
%struct.xxx = type <{ [96 x i8] }>
@.bss = internal unnamed_addr global %struct.xxx zeroinitializer, align 32
define dso_local void @foo() local_unnamed_addr align 16 #0 {
L.entry:
store <vscale x 2 x double> zeroinitializer, ptr @.bss, align 1
%0 = load <vscale x 2 x double>, ptr @.bss, align 8
unreachable
}