[RISCV] Fix More RV32 Signed Immediates (#120658)
[llvm-project.git] / clang / test / CodeGen / blocks-seq.c
blobe30c6b89c5d092e34accf7333ce40c16734d0ced
1 // RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
2 // CHECK: [[Vi:%.+]] = alloca %struct.__block_byref_i, align 8
3 // CHECK: call i32 @rhs()
4 // CHECK: [[V7:%.+]] = getelementptr inbounds nuw %struct.__block_byref_i, ptr [[Vi]], i32 0, i32 1
5 // CHECK: load ptr, ptr [[V7]]
6 // CHECK: call i32 @rhs()
7 // CHECK: [[V11:%.+]] = getelementptr inbounds nuw %struct.__block_byref_i, ptr [[Vi]], i32 0, i32 1
8 // CHECK: load ptr, ptr [[V11]]
10 int rhs(void);
12 void foo(void) {
13 __block int i;
14 ^{ (void)i; };
15 i = rhs();
16 i += rhs();