mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
remove UB from test by making GV alignment explicit
This commit is contained in:
parent
94443cba4d
commit
80ca55c2ca
@ -1,10 +1,10 @@
|
||||
; RUN: opt -globalopt < %s -S -o - | FileCheck %s
|
||||
|
||||
@GV1 = internal global i64 1
|
||||
@GV2 = internal global i32 0
|
||||
@GV1 = internal global i64 1, align 8
|
||||
@GV2 = internal global i32 0, align 4
|
||||
|
||||
; CHECK: @GV1 = internal unnamed_addr global i64 1
|
||||
; CHECK: @GV2 = internal unnamed_addr global i32 0
|
||||
; CHECK: @GV1 = internal unnamed_addr global i64 1, align 8
|
||||
; CHECK: @GV2 = internal unnamed_addr global i32 0, align 4
|
||||
|
||||
define void @test1() {
|
||||
entry:
|
||||
|
Loading…
Reference in New Issue
Block a user