1
0
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:
Nuno Lopes 2019-12-01 15:16:31 +00:00
parent 94443cba4d
commit 80ca55c2ca

View File

@ -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: