31 lines · plain
1; RUN: llc < %s -relocation-model=pic -mtriple=x86_64-apple-darwin | FileCheck %s2; <rdar://problem/8170192>3target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"4target triple = "x86_64-apple-darwin11.0"5 6@msg = internal global ptr null ; <ptr> [#uses=1]7@.str = private constant [2 x i8] c"x\00", align 1 ; <ptr> [#uses=1]8 9define void @test(ptr %p) "frame-pointer"="non-leaf" nounwind optsize ssp {10 11; No stack frame, please.12; CHECK: _test13; CHECK-NOT: pushq %rbp14; CHECK-NOT: movq %rsp, %rbp15; CHECK: InlineAsm Start16 17entry:18 %0 = icmp eq ptr %p, null ; <i1> [#uses=1]19 br i1 %0, label %return, label %bb20 21bb: ; preds = %entry22 tail call void asm "mov $1, $0", "=*m,{cx},~{dirflag},~{fpsr},~{flags}"(ptr elementtype(ptr) @msg, ptr @.str) nounwind23 tail call void @llvm.trap()24 unreachable25 26return: ; preds = %entry27 ret void28}29 30declare void @llvm.trap() nounwind31