• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -mtriple=arm-linux-gnueabi -O0 | FileCheck %s
2; run with -O0 to avoid arm global merging.
3
4@c = internal global i8 0, align 1
5@x = internal global i32 0, align 4
6
7; .lcomm doesn't support alignment, so we always use .local/.comm.
8; CHECK: .local c
9; CHECK-NEXT: .comm c,1,1
10; CHECK: .local x
11; CHECK-NEXT: .comm x,4,4
12
13define i32 @foo() nounwind {
14  ret i32 sub (i32 ptrtoint (i8* @c to i32), i32 ptrtoint (i32* @x to i32))
15}
16