• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple=armv7-unknown-linux -o - %s | FileCheck %s
2
3@vtable = constant [4 x i32] [i32 0,
4    i32 sub (i32 ptrtoint (void ()* @fn1 to i32), i32 ptrtoint (i32* getelementptr ([4 x i32], [4 x i32]* @vtable, i32 0, i32 1) to i32)),
5    i32 sub (i32 ptrtoint (void ()* @fn2 to i32), i32 ptrtoint (i32* getelementptr ([4 x i32], [4 x i32]* @vtable, i32 0, i32 1) to i32)),
6    i32 sub (i32 ptrtoint (void ()* @fn3 to i32), i32 ptrtoint (i32* getelementptr ([4 x i32], [4 x i32]* @vtable, i32 0, i32 1) to i32))
7]
8
9declare void @fn1() unnamed_addr
10declare void @fn2() unnamed_addr
11declare void @fn3()
12
13; CHECK: .long 0
14; CHECK-NEXT: .long (fn1(prel31)-vtable)-4
15; CHECK-NEXT: .long (fn2(prel31)-vtable)-4
16; CHECK-NEXT: .long (fn3-vtable)-4
17