brintos

brintos / llvm-project-archived public Read only

0
0
Text · 777 B · 5d111d0 Raw
30 lines · plain
1; Check that2; 1. ".lto_discard" works as module inlineasm marker and its argument symbols3;    are discarded.4; 2. there is no reassignment error in the presence of ".lto_discard"5; RUN: llc < %s | FileCheck %s6 7; CHECK:    .data8; CHECK-NOT:  .weak  foo9; CHECK-NOT:  .set   foo, bar10; CHECK:      .globl foo11; CHECK:      foo:12; CHECK:        .byte 113 14target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"15target triple = "x86_64-unknown-linux-gnu"16 17module asm ".lto_discard foo"18module asm "	.text"19module asm "bar:"20module asm "	.data"21module asm ".weak foo"22module asm ".set   foo, bar"23module asm ".weak foo"24module asm ".set   foo, bar"25 26module asm ".lto_discard"27module asm ".globl foo"28module asm "foo:"29module asm "   .byte 1"30