diff options
author | Chris Lattner <sabre@nondot.org> | 2011-07-23 20:04:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-07-23 20:04:25 +0000 |
commit | 84037d3d0a1592237a9cb9f578baf93559d3ef55 (patch) | |
tree | 95e8f68ef239da0077151db4325cb723da1f6888 /clang/test | |
parent | 2a843827a29c9d52dba5a4566a03b07cf8554274 (diff) | |
download | bcm5719-llvm-84037d3d0a1592237a9cb9f578baf93559d3ef55.tar.gz bcm5719-llvm-84037d3d0a1592237a9cb9f578baf93559d3ef55.zip |
fix PR10415, tidying up IR representation of module level inline asm
to avoid extraneous \n's.
llvm-svn: 135862
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/CodeGen/asm.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGen/asm.c b/clang/test/CodeGen/asm.c index 7199f09e1a3..a2d56c84f46 100644 --- a/clang/test/CodeGen/asm.c +++ b/clang/test/CodeGen/asm.c @@ -1,4 +1,13 @@ // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm %s -o - | FileCheck %s + +// PR10415 +__asm__ ("foo1"); +__asm__ ("foo2"); +__asm__ ("foo3"); +// CHECK: module asm "foo1" +// CHECK-NEXT: module asm "foo2" +// CHECK-NEXT: module asm "foo3" + void t1(int len) { __asm__ volatile("" : "=&r"(len), "+&r"(len)); } |