• Home
  • Raw
  • Download

Lines Matching refs:APPLE

1 …ileCheck -allow-deprecated-dag-overlap --check-prefix=CHECK-APPLE --check-prefix=CHECK-APPLE-AARCH…
3 …ileCheck -allow-deprecated-dag-overlap --check-prefix=CHECK-APPLE --check-prefix=CHECK-APPLE-ARM64…
13 ; CHECK-APPLE-LABEL: foo:
14 ; CHECK-APPLE: mov w0, #16
15 ; CHECK-APPLE: malloc
16 ; CHECK-APPLE: mov [[ID:w[0-9]+]], #1
17 ; CHECK-APPLE: strb [[ID]], [x0, #8]
18 ; CHECK-APPLE: mov x21, x0
19 ; CHECK-APPLE-NOT: x21
39 ; CHECK-APPLE-LABEL: caller:
40 ; CHECK-APPLE: mov [[ID:x[0-9]+]], x0
41 ; CHECK-APPLE: mov x21, xzr
42 ; CHECK-APPLE: bl {{.*}}foo
43 ; CHECK-APPLE: mov x0, x21
44 ; CHECK-APPLE-AARCH64: cbnz x21
45 ; CHECK-APPLE-ARM64_32: cbnz w0
47 ; CHECK-APPLE: ldrb [[CODE:w[0-9]+]], [x0, #8]
48 ; CHECK-APPLE: strb [[CODE]], [{{.*}}[[ID]]]
49 ; CHECK-APPLE: bl {{.*}}free
77 ; CHECK-APPLE-LABEL: caller2:
78 ; CHECK-APPLE: mov [[ID:x[0-9]+]], x0
79 ; CHECK-APPLE: fmov [[CMP:s[0-9]+]], #1.0
80 ; CHECK-APPLE: mov x21, xzr
81 ; CHECK-APPLE: bl {{.*}}foo
82 ; CHECK-APPLE-AARCH64: cbnz x21
83 ; CHECK-APPLE-ARM64_32: cbnz w21
84 ; CHECK-APPLE: fcmp s0, [[CMP]]
85 ; CHECK-APPLE: b.le
87 ; CHECK-APPLE: ldrb [[CODE:w[0-9]+]], [x21, #8]
88 ; CHECK-APPLE: strb [[CODE]], [{{.*}}[[ID]]]
89 ; CHECK-APPLE: mov x0, x21
90 ; CHECK-APPLE: bl {{.*}}free
124 ; CHECK-APPLE-LABEL: foo_if:
125 ; CHECK-APPLE: cbz w0
126 ; CHECK-APPLE: mov w0, #16
127 ; CHECK-APPLE: malloc
128 ; CHECK-APPLE: mov [[ID:w[0-9]+]], #1
129 ; CHECK-APPLE: strb [[ID]], [x0, #8]
130 ; CHECK-APPLE: mov x21, x0
131 ; CHECK-APPLE-NOT: x21
132 ; CHECK-APPLE: ret
166 ; CHECK-APPLE-LABEL: foo_loop:
167 ; CHECK-APPLE: mov x0, x21
168 ; CHECK-APPLE: fcmp
169 ; CHECK-APPLE: b.gt
170 ; CHECK-APPLE: cbz
171 ; CHECK-APPLE: mov w0, #16
172 ; CHECK-APPLE: malloc
173 ; CHECK-APPLE: strb w{{.*}}, [x0, #8]
174 ; CHECK-APPLE: mov x21, x0
175 ; CHECK-APPLE: ret
247 ; CHECK-APPLE-LABEL: foo_sret:
248 ; CHECK-APPLE: mov [[SRET:x[0-9]+]], x8
249 ; CHECK-APPLE: mov w0, #16
250 ; CHECK-APPLE: malloc
251 ; CHECK-APPLE: mov [[ID:w[0-9]+]], #1
252 ; CHECK-APPLE: strb [[ID]], [x0, #8]
253 ; CHECK-APPLE: str w{{.*}}, [{{.*}}[[SRET]], #4]
254 ; CHECK-APPLE: mov x21, x0
255 ; CHECK-APPLE-NOT: x21
282 ; CHECK-APPLE-LABEL: caller3:
283 ; CHECK-APPLE: mov [[ID:x[0-9]+]], x0
284 ; CHECK-APPLE: mov x21, xzr
285 ; CHECK-APPLE: bl {{.*}}foo_sret
286 ; CHECK-APPLE: mov x0, x21
287 ; CHECK-APPLE-AARCH64: cbnz x21
288 ; CHECK-APPLE-ARM64_32: cbnz w0
290 ; CHECK-APPLE: ldrb [[CODE:w[0-9]+]], [x0, #8]
291 ; CHECK-APPLE: strb [[CODE]], [{{.*}}[[ID]]]
292 ; CHECK-APPLE: bl {{.*}}free
331 ; CHECK-APPLE-LABEL: foo_vararg:
332 ; CHECK-APPLE: mov w0, #16
333 ; CHECK-APPLE: malloc
336 ; CHECK-APPLE-AARCH64: mov [[ID:w[0-9]+]], #1
337 ; CHECK-APPLE-AARCH64: ldr {{w[0-9]+}}, [{{.*}}[[TMP:x[0-9]+]], #16]
338 ; CHECK-APPLE-AARCH64: add [[ARGS:x[0-9]+]], [[TMP]], #16
340 ; CHECK-APPLE-AARCH64: ldr {{w[0-9]+}}, [{{.*}}[[TMP]], #32]
341 ; CHECK-APPLE-AARCH64: strb [[ID]], [x0, #8]
343 ; CHECK-APPLE-AARCH64: ldr {{w[0-9]+}}, [{{.*}}[[TMP]], #24]
345 ; CHECK-APPLE-ARM64_32: mov [[ID:w[0-9]+]], #1
346 ; CHECK-APPLE-ARM64_32: add [[ARGS:x[0-9]+]], [[TMP:x[0-9]+]], #16
347 ; CHECK-APPLE-ARM64_32: strb [[ID]], [x0, #8]
375 ; CHECK-APPLE-LABEL: caller4:
377 ; CHECK-APPLE-AARCH64: mov [[ID:x[0-9]+]], x0
378 ; CHECK-APPLE-AARCH64: stp {{x[0-9]+}}, {{x[0-9]+}}, [sp, #8]
379 ; CHECK-APPLE-AARCH64: str {{x[0-9]+}}, [sp]
381 ; CHECK-APPLE-AARCH64: mov x21, xzr
382 ; CHECK-APPLE-AARCH64: bl {{.*}}foo_vararg
383 ; CHECK-APPLE-AARCH64: mov x0, x21
384 ; CHECK-APPLE-AARCH64: cbnz x21
386 ; CHECK-APPLE-AARCH64: ldrb [[CODE:w[0-9]+]], [x0, #8]
387 ; CHECK-APPLE-AARCH64: strb [[CODE]], [{{.*}}[[ID]]]
388 ; CHECK-APPLE-AARCH64: bl {{.*}}free
431 ; CHECK-APPLE-LABEL: swifterror_clobber
432 ; CHECK-APPLE: mov [[REG:x[0-9]+]], x21
433 ; CHECK-APPLE: nop
434 ; CHECK-APPLE: mov x21, [[REG]]
440 ; CHECK-APPLE-LABEL: swifterror_reg_clobber
441 ; CHECK-APPLE: stp {{.*}}x21
442 ; CHECK-APPLE: nop
443 ; CHECK-APPLE: ldp {{.*}}x21
448 ; CHECK-APPLE-LABEL: params_in_reg
450 ; CHECK-APPLE: stp x21, x28, [sp
451 ; CHECK-APPLE: stp x27, x26, [sp
452 ; CHECK-APPLE: stp x25, x24, [sp
453 ; CHECK-APPLE: stp x23, x22, [sp
454 ; CHECK-APPLE: stp x20, x19, [sp
455 ; CHECK-APPLE: stp x29, x30, [sp
456 ; CHECK-APPLE: str x20, [sp
458 ; CHECK-APPLE: mov x23, x7
459 ; CHECK-APPLE: mov x24, x6
460 ; CHECK-APPLE: mov x25, x5
461 ; CHECK-APPLE: mov x26, x4
462 ; CHECK-APPLE: mov x27, x3
463 ; CHECK-APPLE: mov x28, x2
464 ; CHECK-APPLE: mov x19, x1
465 ; CHECK-APPLE: mov x22, x0
467 ; CHECK-APPLE: mov w0, #1
468 ; CHECK-APPLE: mov w1, #2
469 ; CHECK-APPLE: mov w2, #3
470 ; CHECK-APPLE: mov w3, #4
471 ; CHECK-APPLE: mov w4, #5
472 ; CHECK-APPLE: mov w5, #6
473 ; CHECK-APPLE: mov w6, #7
474 ; CHECK-APPLE: mov w7, #8
475 ; CHECK-APPLE: mov x20, xzr
476 ; CHECK-APPLE: mov x21, xzr
477 ; CHECK-APPLE: bl _params_in_reg2
479 ; CHECK-APPLE: mov x0, x22
480 ; CHECK-APPLE: mov x1, x19
481 ; CHECK-APPLE: mov x2, x28
482 ; CHECK-APPLE: mov x3, x27
483 ; CHECK-APPLE: mov x4, x26
484 ; CHECK-APPLE: mov x5, x25
485 ; CHECK-APPLE: mov x6, x24
486 ; CHECK-APPLE: mov x7, x23
488 ; CHECK-APPLE: ldp x20, x21, [sp
489 ; CHECK-APPLE: bl _params_in_reg2
491 ; CHECK-APPLE-NOT: x21
492 ; CHECK-APPLE: ldp x29, x30, [sp
493 ; CHECK-APPLE-NOT: x21
494 ; CHECK-APPLE: ldp x20, x19, [sp
495 ; CHECK-APPLE-NOT: x21
496 ; CHECK-APPLE: ldp x23, x22, [sp
497 ; CHECK-APPLE-NOT: x21
498 ; CHECK-APPLE: ldp x25, x24, [sp
499 ; CHECK-APPLE-NOT: x21
500 ; CHECK-APPLE: ldp x27, x26, [sp
501 ; CHECK-APPLE-NOT: x21
502 ; CHECK-APPLE: ldr x28, [sp
503 ; CHECK-APPLE-NOT: x21
504 ; CHECK-APPLE: ret
514 ; CHECK-APPLE-LABEL: params_and_return_in_reg
516 ; CHECK-APPLE: stp x20, x28, [sp, #24
517 ; CHECK-APPLE: stp x27, x26, [sp
518 ; CHECK-APPLE: stp x25, x24, [sp
519 ; CHECK-APPLE: stp x23, x22, [sp
520 ; CHECK-APPLE: stp x20, x19, [sp
521 ; CHECK-APPLE: stp x29, x30, [sp
523 ; CHECK-APPLE: mov x23, x21
524 ; CHECK-APPLE: str x7, [sp, #16]
525 ; CHECK-APPLE: mov x24, x6
526 ; CHECK-APPLE: mov x25, x5
527 ; CHECK-APPLE: mov x26, x4
528 ; CHECK-APPLE: mov x27, x3
529 ; CHECK-APPLE: mov x28, x2
530 ; CHECK-APPLE: mov x19, x1
531 ; CHECK-APPLE: mov x22, x0
533 ; CHECK-APPLE: mov w0, #1
534 ; CHECK-APPLE: mov w1, #2
535 ; CHECK-APPLE: mov w2, #3
536 ; CHECK-APPLE: mov w3, #4
537 ; CHECK-APPLE: mov w4, #5
538 ; CHECK-APPLE: mov w5, #6
539 ; CHECK-APPLE: mov w6, #7
540 ; CHECK-APPLE: mov w7, #8
541 ; CHECK-APPLE: mov x20, xzr
542 ; CHECK-APPLE: mov x21, xzr
543 ; CHECK-APPLE: bl _params_in_reg2
545 ; CHECK-APPLE: str x21, [sp, #8]
547 ; CHECK-APPLE: mov x0, x22
548 ; CHECK-APPLE: mov x1, x19
549 ; CHECK-APPLE: mov x2, x28
550 ; CHECK-APPLE: mov x3, x27
551 ; CHECK-APPLE: mov x4, x26
552 ; CHECK-APPLE: mov x5, x25
553 ; CHECK-APPLE: mov x6, x24
554 ; CHECK-APPLE: ldp x7, x20, [sp, #16]
555 ; CHECK-APPLE: mov x21, x23
556 ; CHECK-APPLE: bl _params_and_return_in_reg2
558 ; CHECK-APPLE: mov x19, x0
559 ; CHECK-APPLE: mov x22, x1
560 ; CHECK-APPLE: mov x24, x2
561 ; CHECK-APPLE: mov x25, x3
562 ; CHECK-APPLE: mov x26, x4
563 ; CHECK-APPLE: mov x27, x5
564 ; CHECK-APPLE: mov x28, x6
565 ; CHECK-APPLE: mov x23, x7
567 ; CHECK-APPLE: str x21, [sp, #24]
569 ; CHECK-APPLE: mov w0, #1
570 ; CHECK-APPLE: mov w1, #2
571 ; CHECK-APPLE: mov w2, #3
572 ; CHECK-APPLE: mov w3, #4
573 ; CHECK-APPLE: mov w4, #5
574 ; CHECK-APPLE: mov w5, #6
575 ; CHECK-APPLE: mov w6, #7
576 ; CHECK-APPLE: mov w7, #8
577 ; CHECK-APPLE: mov x20, xzr
579 ; CHECK-APPLE: ldr x21, [sp, #8]
580 ; CHECK-APPLE: bl _params_in_reg2
582 ; CHECK-APPLE: mov x0, x19
583 ; CHECK-APPLE: mov x1, x22
584 ; CHECK-APPLE: mov x2, x24
585 ; CHECK-APPLE: mov x3, x25
586 ; CHECK-APPLE: mov x4, x26
587 ; CHECK-APPLE: mov x5, x27
588 ; CHECK-APPLE: mov x6, x28
589 ; CHECK-APPLE: mov x7, x23
591 ; CHECK-APPLE: ldp x21, x28, [sp, #24
592 ; CHECK-APPLE: ldp x29, x30, [sp
593 ; CHECK-APPLE: ldp x20, x19, [sp
594 ; CHECK-APPLE: ldp x23, x22, [sp
595 ; CHECK-APPLE: ldp x25, x24, [sp
596 ; CHECK-APPLE: ldp x27, x26, [sp
597 ; CHECK-APPLE: ret
613 ; CHECK-APPLE: tailcall_from_swifterror:
614 ; CHECK-APPLE-NOT: b _acallee
615 ; CHECK-APPLE: bl _acallee
632 ; CHECK-APPLE-LABEL: testAssign
633 ; CHECK-APPLE: mov x21, xzr
634 ; CHECK-APPLE: bl _foo2
635 ; CHECK-APPLE: mov x0, x21