Mercurial > hg > CbC > CbC_llvm
view test/MC/X86/inline-asm-obj.ll @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 |
parents | afa8332a0e37 |
children |
line wrap: on
line source
; RUN: llc %s -o - | llvm-mc -triple=x86_64-pc-linux -o %t1 -filetype=obj ; RUN: llc %s -o %t2 -filetype=obj ; RUN: cmp %t1 %t2 ; Test that we can handle inline assembly referring to a temporary label. ; We crashed when using direct object emission in the past. target triple = "x86_64-unknown-linux-gnu" define void @fj() { call void asm "bsr $0,%eax", "o"(i32 1) ret void }