Files
clang-p2996/llvm/test/Transforms/GlobalOpt/x86_mmx_load.ll
Nikita Popov 2926d6d335 [ConstantFold][GlobalOpt] Don't create x86_mmx null value
This fixes the assertion failure reported at
https://reviews.llvm.org/D114889#3198921 with a straightforward
check, until the cleaner fix in D115924 can be reapplied.
2021-12-21 09:11:41 +01:00

13 lines
335 B
LLVM

; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -globalopt < %s | FileCheck %s
@m64 = internal global <1 x i64> zeroinitializer
define i32 @load_mmx() {
; CHECK-LABEL: @load_mmx(
; CHECK-NEXT: ret i32 0
;
%temp = load x86_mmx, x86_mmx* bitcast (<1 x i64>* @m64 to x86_mmx*)
ret i32 0
}