brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 66a6fd3 Raw
49 lines · plain
1; RUN: llc < %s -relocation-model=pic -filetype=obj -code-model=small -o %t2; RUN: llvm-readelf -S %t | FileCheck %s --check-prefix=SMALL3; RUN: llc < %s -relocation-model=pic -filetype=obj -code-model=medium -o %t4; RUN: llvm-readelf -S %t | FileCheck %s --check-prefix=SMALL5; RUN: llc < %s -relocation-model=pic -filetype=obj -code-model=large -o %t6; RUN: llvm-readelf -S %t | FileCheck %s --check-prefix=LARGE7 8; RUN: llc < %s -relocation-model=pic -filetype=obj -code-model=small -function-sections -o %t9; RUN: llvm-readelf -S %t | FileCheck %s --check-prefix=SMALL-DS10; RUN: llc < %s -relocation-model=pic -filetype=obj -code-model=medium -function-sections -o %t11; RUN: llvm-readelf -S %t | FileCheck %s --check-prefix=SMALL-DS12; RUN: llc < %s -relocation-model=pic -filetype=obj -code-model=large -function-sections -o %t13; RUN: llvm-readelf -S %t | FileCheck %s --check-prefix=LARGE-DS14 15; SMALL: .text {{.*}} AX {{.*}}16; SMALL: .ltext {{.*}} AXl {{.*}}17; SMALL: .ltext.2 {{.*}} AXl {{.*}}18; SMALL: .foo {{.*}} AX {{.*}}19; SMALL-DS: .text.func {{.*}} AX {{.*}}20; SMALL-DS: .ltext {{.*}} AXl {{.*}}21; SMALL-DS: .ltext.2 {{.*}} AXl {{.*}}22; SMALL-DS: .foo {{.*}} AX {{.*}}23; LARGE: .ltext {{.*}} AXl {{.*}}24; LARGE: .ltext.2 {{.*}} AXl {{.*}}25; LARGE: .foo {{.*}} AX {{.*}}26; LARGE-DS: .ltext.func {{.*}} AXl {{.*}}27; LARGE-DS: .ltext {{.*}} AXl {{.*}}28; LARGE-DS: .ltext.2 {{.*}} AXl {{.*}}29; LARGE-DS: .foo {{.*}} AX {{.*}}30 31target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"32target triple = "x86_64--linux"33 34define void @func() {35  ret void36}37 38define void @ltext() section ".ltext" {39  ret void40}41 42define void @ltext2() section ".ltext.2" {43  ret void44}45 46define void @foo() section ".foo" {47  ret void48}49