brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 6920e74 Raw
33 lines · plain
1; RUN: llc < %s -mtriple=x86_64-linux-unknown -verify-machineinstrs -o %t.s2; RUN: FileCheck --input-file=%t.s %s3 4; Double-check that we are able to assemble the generated '.s'. A symptom of the5; problem that led to this test is an assembler failure when using6; '-save-temps'. For example:7;  8; > ...s:683:7: error: invalid operand for instruction9; >        addq    $2147483679, %rsp               # imm = 0x8000001F10;11; RUN: llvm-mc -triple x86_64-unknown-unknown %t.s12 13; Check that the stack update after calling bar gets merged into the second add14; and not the first which is already at the chunk size limit (0x7FFFFFFF).15 16define void @foo(ptr %rhs) {17; CHECK-LABEL: foo18entry:19  %lhs = alloca [5 x [5 x [3 x [162 x [161 x [161 x double]]]]]], align 1620  store ptr %lhs, ptr %rhs, align 821  %0 = call i32 @baz()22  call void @bar(i64 0, i64 0, i64 0, i64 0, i64 0, ptr null, ptr %rhs, ptr null, ptr %rhs)23; CHECK: call{{.*}}bar24; CHECK: addq{{.*}}$2147483647, %rsp25; CHECK: addq{{.*}}$372037601, %rsp26; CHECK: .cfi_adjust_cfa_offset -251952124827  ret void28}29 30declare void @bar(i64, i64, i64, i64, i64, ptr, ptr, ptr, ptr)31 32declare i32 @baz()33