20 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 22; RUN: opt -passes=globalopt -S -debug %s 2>&1 | FileCheck %s3 4; REQUIRES: asserts5 6@g = internal global { double } { double 0x40E7606FBE1650A4 }7 8; CHECK: Global SRA: Failed to evaluate initializer of @g =9 10define [1 x double] @test () {11; CHECK-LABEL: define [1 x double] @test() local_unnamed_addr {12; CHECK-NEXT: entry:13; CHECK-NEXT: [[L:%.*]] = load [1 x double], ptr @g, align 814; CHECK-NEXT: ret [1 x double] [[L]]15;16entry:17 %l = load [1 x double], ptr @g, align 818 ret [1 x double] %l19}20