• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llvm-as < %s | llvm-bcanalyzer -dump | FileCheck %s -check-prefix=BC
2; Check for VST forward declaration record and VST function index records.
3
4; BC: <VSTOFFSET
5; BC: <FNENTRY
6; BC: <FNENTRY
7
8; RUN: llvm-as < %s | llvm-dis | FileCheck %s
9; Check that this round-trips correctly.
10
11; ModuleID = '<stdin>'
12target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
13target triple = "x86_64-unknown-linux-gnu"
14
15; CHECK: define i32 @foo()
16
17; Function Attrs: nounwind uwtable
18define i32 @foo() #0 {
19entry:
20  ret i32 1
21}
22
23; CHECK: define i32 @bar(i32 %x)
24
25; Function Attrs: nounwind uwtable
26define i32 @bar(i32 %x) #0 {
27entry:
28  ret i32 %x
29}
30