brintos

brintos / llvm-project-archived public Read only

0
0
Text · 647 B · 1e922c3 Raw
23 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 32; RUN: opt -S -passes=globalopt < %s | FileCheck %s3target datalayout = "A5-G1"4 5; Check that we don't convert the global into an alloca if their respective address6; spaces differ, and the alloca addrspace is non-zero.7 8@x = internal global i32 poison9 10; Function Attrs: norecurse11define void @test(i32 %0) #0 {12; CHECK-LABEL: define void @test(13; CHECK-SAME: i32 [[TMP0:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] {14; CHECK-NEXT:  entry:15; CHECK-NEXT:    ret void16;17entry:18  store i32 %0, ptr @x, align 419  ret void20}21 22attributes #0 = { norecurse }23