1; RUN: llc < %s -mtriple=powerpc64le-unknown-unknown -verify-machineinstrs \ 2; RUN: -mcpu=pwr8 | FileCheck %s 3module asm "\09.section \22___kcrctab+numa_node\22, \22a\22\09" 4module asm "\09.weak\09__crc_numa_node\09" 5module asm "\09.long\09__crc_numa_node\09" 6module asm "\09.previous\09\09\09\09\09" 7module asm "\09.section \22___kcrctab+_numa_mem_\22, \22a\22\09" 8module asm "\09.weak\09__crc__numa_mem_\09" 9module asm "\09.long\09__crc__numa_mem_\09" 10module asm "\09.previous\09\09\09\09\09" 11module asm "\09.section \22___kcrctab+node_states\22, \22a\22\09" 12module asm "\09.weak\09__crc_node_states\09" 13module asm "\09.long\09__crc_node_states\09" 14module asm "\09.previous\09\09\09\09\09" 15module asm "\09.section \22___kcrctab+totalram_pages\22, \22a\22\09" 16module asm "\09.weak\09__crc_totalram_pages\09" 17module asm "\09.long\09__crc_totalram_pages\09" 18module asm "\09.previous\09\09\09\09\09" 19module asm "\09.section \22___kcrctab+movable_zone\22, \22a\22\09" 20module asm "\09.weak\09__crc_movable_zone\09" 21module asm "\09.long\09__crc_movable_zone\09" 22module asm "\09.previous\09\09\09\09\09" 23module asm "\09.section \22___kcrctab+nr_node_ids\22, \22a\22\09" 24module asm "\09.weak\09__crc_nr_node_ids\09" 25module asm "\09.long\09__crc_nr_node_ids\09" 26module asm "\09.previous\09\09\09\09\09" 27module asm "\09.section \22___kcrctab+nr_online_nodes\22, \22a\22\09" 28module asm "\09.weak\09__crc_nr_online_nodes\09" 29module asm "\09.long\09__crc_nr_online_nodes\09" 30module asm "\09.previous\09\09\09\09\09" 31module asm "\09.section \22___kcrctab_gpl+split_page\22, \22a\22\09" 32module asm "\09.weak\09__crc_split_page\09" 33module asm "\09.long\09__crc_split_page\09" 34module asm "\09.previous\09\09\09\09\09" 35module asm "\09.section \22___kcrctab+__alloc_pages_nodemask\22, \22a\22\09" 36module asm "\09.weak\09__crc___alloc_pages_nodemask\09" 37module asm "\09.long\09__crc___alloc_pages_nodemask\09" 38module asm "\09.previous\09\09\09\09\09" 39module asm "\09.section \22___kcrctab+__get_free_pages\22, \22a\22\09" 40module asm "\09.weak\09__crc___get_free_pages\09" 41module asm "\09.long\09__crc___get_free_pages\09" 42module asm "\09.previous\09\09\09\09\09" 43module asm "\09.section \22___kcrctab+get_zeroed_page\22, \22a\22\09" 44module asm "\09.weak\09__crc_get_zeroed_page\09" 45module asm "\09.long\09__crc_get_zeroed_page\09" 46module asm "\09.previous\09\09\09\09\09" 47module asm "\09.section \22___kcrctab+__free_pages\22, \22a\22\09" 48module asm "\09.weak\09__crc___free_pages\09" 49module asm "\09.long\09__crc___free_pages\09" 50module asm "\09.previous\09\09\09\09\09" 51module asm "\09.section \22___kcrctab+free_pages\22, \22a\22\09" 52module asm "\09.weak\09__crc_free_pages\09" 53module asm "\09.long\09__crc_free_pages\09" 54module asm "\09.previous\09\09\09\09\09" 55module asm "\09.section \22___kcrctab+__page_frag_cache_drain\22, \22a\22\09" 56module asm "\09.weak\09__crc___page_frag_cache_drain\09" 57module asm "\09.long\09__crc___page_frag_cache_drain\09" 58module asm "\09.previous\09\09\09\09\09" 59module asm "\09.section \22___kcrctab+page_frag_alloc\22, \22a\22\09" 60module asm "\09.weak\09__crc_page_frag_alloc\09" 61module asm "\09.long\09__crc_page_frag_alloc\09" 62module asm "\09.previous\09\09\09\09\09" 63module asm "\09.section \22___kcrctab+page_frag_free\22, \22a\22\09" 64module asm "\09.weak\09__crc_page_frag_free\09" 65module asm "\09.long\09__crc_page_frag_free\09" 66module asm "\09.previous\09\09\09\09\09" 67module asm "\09.section \22___kcrctab+alloc_pages_exact\22, \22a\22\09" 68module asm "\09.weak\09__crc_alloc_pages_exact\09" 69module asm "\09.long\09__crc_alloc_pages_exact\09" 70module asm "\09.previous\09\09\09\09\09" 71module asm "\09.section \22___kcrctab+free_pages_exact\22, \22a\22\09" 72module asm "\09.weak\09__crc_free_pages_exact\09" 73module asm "\09.long\09__crc_free_pages_exact\09" 74module asm "\09.previous\09\09\09\09\09" 75module asm "\09.section \22___kcrctab_gpl+nr_free_buffer_pages\22, \22a\22\09" 76module asm "\09.weak\09__crc_nr_free_buffer_pages\09" 77module asm "\09.long\09__crc_nr_free_buffer_pages\09" 78module asm "\09.previous\09\09\09\09\09" 79module asm "\09.section \22___kcrctab_gpl+si_mem_available\22, \22a\22\09" 80module asm "\09.weak\09__crc_si_mem_available\09" 81module asm "\09.long\09__crc_si_mem_available\09" 82module asm "\09.previous\09\09\09\09\09" 83module asm "\09.section \22___kcrctab+si_meminfo\22, \22a\22\09" 84module asm "\09.weak\09__crc_si_meminfo\09" 85module asm "\09.long\09__crc_si_meminfo\09" 86module asm "\09.previous\09\09\09\09\09" 87module asm "\09.section \22___kcrctab+adjust_managed_page_count\22, \22a\22\09" 88module asm "\09.weak\09__crc_adjust_managed_page_count\09" 89module asm "\09.long\09__crc_adjust_managed_page_count\09" 90module asm "\09.previous\09\09\09\09\09" 91module asm "\09.section \22___kcrctab+free_reserved_area\22, \22a\22\09" 92module asm "\09.weak\09__crc_free_reserved_area\09" 93module asm "\09.long\09__crc_free_reserved_area\09" 94module asm "\09.previous\09\09\09\09\09" 95 96@nr_cpu_ids = external local_unnamed_addr global i32, align 4 97 98; Function Attrs: nounwind 99define void @__alloc_pages_nodemask() #0 { 100entry: 101 %0 = call i64 asm sideeffect "ld${1:U}${1:X} $0,$1", "=r,*m"(i64* undef) 102 br i1 undef, label %do.body.lr.ph.i.i.i, label %zone_page_state_snapshot.exit.i.i 103; CHECK: ld 3, 0(3) 104 105do.body.lr.ph.i.i.i: ; preds = %entry 106 br label %do.body.i.i.i 107 108do.body.i.i.i: ; preds = %do.body.i.i.i, %do.body.lr.ph.i.i.i 109 %x.022.i.i.i = phi i64 [ %0, %do.body.lr.ph.i.i.i ], [ %add7.i.i.i, %do.body.i.i.i ] 110 %1 = load i8, i8* undef, align 1 111 %conv.i.i458.i = sext i8 %1 to i64 112 %add7.i.i.i = add i64 %x.022.i.i.i, %conv.i.i458.i 113 %2 = load i32, i32* @nr_cpu_ids, align 4 114 %cmp.i1.i.i = icmp ult i32 0, %2 115 br i1 %cmp.i1.i.i, label %do.body.i.i.i, label %zone_page_state_snapshot.exit.i.i 116 117zone_page_state_snapshot.exit.i.i: ; preds = %do.body.i.i.i, %entry 118 %x.0.lcssa.i.i.i = phi i64 [ %0, %entry ], [ %add7.i.i.i, %do.body.i.i.i ] 119 %3 = icmp sgt i64 %x.0.lcssa.i.i.i, 0 120 unreachable 121} 122