Mercurial > hg > CbC > CbC_llvm
diff llvm/test/Feature/alignment.ll @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | 1f2b6ac9f198 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/llvm/test/Feature/alignment.ll Thu Feb 13 15:10:13 2020 +0900 @@ -0,0 +1,16 @@ +; RUN: llvm-as < %s | llvm-dis > %t1.ll +; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll +; RUN: diff %t1.ll %t2.ll + +@X = global i32 4, align 16 ; <i32*> [#uses=0] + +define i32* @test() align 32 { + %X = alloca i32, align 4 ; <i32*> [#uses=1] + %Y = alloca i32, i32 42, align 16 ; <i32*> [#uses=0] + %Z = alloca i32 ; <i32*> [#uses=0] + ret i32* %X +} +define void @test3() alignstack(16) { + ret void +} +