John McCall | d1e40d5 | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s |
Fariborz Jahanian | b19c76e | 2011-02-08 22:33:23 +0000 | [diff] [blame] | 2 | // rdar://8966864 |
| 3 | |
| 4 | @interface Foo |
| 5 | -(float)myfo; |
| 6 | -(void)setMyfo: (int)p; |
| 7 | @end |
| 8 | |
| 9 | void bar(Foo *x) { |
| 10 | x.myfo++; |
| 11 | } |
| 12 | |
Fariborz Jahanian | bf1f826 | 2011-02-28 21:19:34 +0000 | [diff] [blame] | 13 | // CHECK: [[C1:%.*]] = call float bitcast (i8* (i8*, i8*, ...)* @objc_msgSend |
Fariborz Jahanian | b19c76e | 2011-02-08 22:33:23 +0000 | [diff] [blame] | 14 | // CHECK: [[I:%.*]] = fadd float [[C1]], 1.000000e+00 |
| 15 | // CHECK: [[CONV:%.*]] = fptosi float [[I]] to i32 |
Sunil Srivastava | 68c4808 | 2015-05-12 16:48:43 +0000 | [diff] [blame] | 16 | // CHECK: [[T3:%.*]] = load i8*, i8** @OBJC_SELECTOR_REFERENCES_.2 |
Fariborz Jahanian | bf1f826 | 2011-02-28 21:19:34 +0000 | [diff] [blame] | 17 | // CHECK: call void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend |