2015-07-23 06:29:30 +08:00
|
|
|
; RUN: opt < %s -sccp -S | FileCheck %s
|
2016-05-18 23:18:25 +08:00
|
|
|
; RUN: opt < %s -passes=sccp -S | FileCheck %s
|
2015-07-23 06:29:30 +08:00
|
|
|
|
|
|
|
@0 = private unnamed_addr constant [2 x i32] [i32 -1, i32 1]
|
2015-09-11 11:22:04 +08:00
|
|
|
@"\01??_7A@@6B@" = unnamed_addr alias i32, getelementptr inbounds ([2 x i32], [2 x i32]* @0, i32 0, i32 1)
|
2015-07-23 06:29:30 +08:00
|
|
|
|
|
|
|
; CHECK: ret i32 1
|
|
|
|
|
|
|
|
define i32 @main() {
|
|
|
|
%a = load i32, i32* @"\01??_7A@@6B@"
|
|
|
|
ret i32 %a
|
|
|
|
}
|