Mercurial > hg > CbC > CbC_llvm
view test/CodeGen/X86/webkit-jscc.ll @ 100:7d135dc70f03 LLVM 3.9
LLVM 3.9
author | Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 22:53:40 +0900 |
parents | afa8332a0e37 |
children |
line wrap: on
line source
; RUN: llc -mtriple=x86_64-apple-darwin -mcpu=corei7 < %s | FileCheck %s ; RUN: llc -mtriple=x86_64-linux-gnu -mcpu=corei7 < %s | FileCheck %s ; RUN: llc -mtriple=x86_64-windows-gnu -mcpu=corei7 < %s | FileCheck %s ; RUN: llc -mtriple=x86_64-windows-msvc -mcpu=corei7 < %s | FileCheck %s define webkit_jscc i32 @simple_jscall(i32 %a, i32 %b, i32 %c) { %ab = add i32 %a, %b %abc = add i32 %ab, %c ret i32 %abc } ; 32-bit integers are only aligned to 4 bytes, even on x64. They are *not* ; promoted to i64. ; CHECK: simple_jscall: ; CHECK: addl 8(%rsp), %eax ; CHECK-NEXT: addl 12(%rsp), %eax ; CHECK-NEXT: retq